Run a one-off pod
Temporary pod for debugging; deleted when you exit
kubectl run tmp --image=nicolaka/netshoot -it --rm --restart=Never -n <ns> -- bash
- tool
- kubectl73 commands
More kubectl commands
-
kubectl get nodes --show-labelsLists all labels on each node
-
kubectl uncordon <node>Allows scheduling again on a node that was cordoned
-
kubectl get hpa -ACurrent and desired replicas and metrics of each Horizontal Pod Autoscaler
-
kubectl describe resourcequota -n <ns>Used vs hard limits for CPU, memory and object counts in the namespace
-
kubectl get pdb -AShows min available, max unavailable and how many pods can be evicted right now