Skip to content

Instantly share code, notes, and snippets.

@mahmud2011
Last active April 4, 2024 18:05
Show Gist options
  • Save mahmud2011/65ae7f4bf8b732f171bfcb4f334c76e2 to your computer and use it in GitHub Desktop.
Save mahmud2011/65ae7f4bf8b732f171bfcb4f334c76e2 to your computer and use it in GitHub Desktop.
K8s cheat sheet
kubectl config view
kubectl config get-contexts
kubectl config use-context minikube
kubectl config current-context
kubectl get pods
kubectl get pods -w
kubectl describe pods <pod>
kubectl logs <pod>
kubectl logs <pod> --container <container>
kubectl exec <pod> -- [command]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment