My_cheatSheets
Kubernetes Cheat Sheet
kubectl cluster-infokubectl get nodes
kubectl get pods --all-namespaceskubectl run <pod-name> --image=<image-name>kubectl describe pod <pod-name>kubectl expose deployment <deployment-name> --type=<service-type> --port=<port>kubectl get svckubectl config set-context --current --user=<user-name> --cluster=<cluster-name>kubectl config viewkubectl logs <pod-name>kubectl logs -f <pod-name>kubectl get quotakubectl top nodes
Last updated