Skip to content
cheatsheet
home
/
cv
/
weblog
/
cheatsheet
/
proxy
/
vpn
/
status
/
links
EN
RU
☾
New version available
reload
×
cheatsheet
/
kubectl
/
List all pods across namespaces
List all pods across namespaces
kubectl
All pods with node placement and IPs
kubectl get pods -A -o wide
⎘ copy
#pods
more kubectl
all 73 commands →
Describe a pod
kubectl describe pod <name> -n <ns>
Follow pod logs
kubectl logs -f <pod> -n <ns>
Logs from previous container
kubectl logs <pod> --previous -n <ns>
Exec into pod
kubectl exec -it <pod> -n <ns> -- bash
Port-forward a service
kubectl port-forward svc/<name> 8080:80 -n <ns>