Skip to content

Instantly share code, notes, and snippets.

@michaellihs
Last active June 15, 2023 14:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaellihs/3faad2e1cc281d016be2f881240c79b1 to your computer and use it in GitHub Desktop.
Save michaellihs/3faad2e1cc281d016be2f881240c79b1 to your computer and use it in GitHub Desktop.
Kubernetes Cheat Sheet

Kubernetes Cheat Sheet

Colima

Colima and kubectl

How to get the K8S credentials

colima ssh -- cat /etc/rancher/k3s/k3s.yaml

or

colima ssh -- cat /etc/rancher/k3s/k3s.yaml > $KUBECONFIG

Helm

Playing around with Helm on Colima Kubernetes

colima start
colima kubernetes start
helm repo add examples https://helm.github.io/examples
helm repo update
echo "replicaCount: 2" | helm upgrade --install my-hello-world examples/hello-world -f -
sleep 10
kubectl get pods
helm list
echo "replicaCount: 2" | helm upgrade --install my-hello-world examples/hello-world -f -
sleep 10
echo "replicaCount: 2" | helm upgrade --install my-hello-world examples/hello-world -f -
kubectl get pods
helm list

Debugging PODs

Tools & Resources

K9S

Installation

brew install derailed/k9s/k9s

Running on default namespace

k9s -n default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment