Cluster and Namespace
Current context
kubectl config current-contextList namespaces
kubectl get nsSet namespace
kubectl config set-context --current --namespace=<namespace>Essential kubectl commands for pods, deployments, logs, and rollout.
This Kubernetes cheatsheet focuses on practical kubectl commands used during deployments and incident response.
kubectl config current-contextkubectl get nskubectl config set-context --current --namespace=<namespace>kubectl get pods -o widekubectl describe pod <pod-name>kubectl get deploykubectl rollout restart deploy/<deployment>kubectl logs -f deploy/<deployment>kubectl rollout status deploy/<deployment>kubectl rollout history deploy/<deployment>kubectl rollout undo deploy/<deployment>This Kubernetes cheatsheet focuses on practical kubectl commands used during deployments and incident response.
Need a hand with Kubernetes Cheatsheet? Reach out through support or send a feature request with your workflow.