Cheatsheets

Kubernetes cheatsheet

kubectl get/describe/logs and apply workflows.

Inspect

Command / topicWhat it does
kubectl get pods -AList pods in all namespaces
kubectl describe pod <name>Events and config for a pod
kubectl logs -f deploy/apiFollow deployment logs
kubectl get svc,ingressServices and ingress

Change

Command / topicWhat it does
kubectl apply -f manifest.yamlCreate or update from YAML
kubectl rollout status deploy/apiWatch a rollout
kubectl rollout undo deploy/apiRoll back one revision
kubectl delete -f manifest.yamlDelete resources in a file

← All cheatsheets · Courses