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
tags
debugpods

More kubectl commands

  • kubectl get nodes --show-labels

    Lists all labels on each node

  • kubectl uncordon <node>

    Allows scheduling again on a node that was cordoned

  • kubectl get hpa -A

    Current 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 -A

    Shows min available, max unavailable and how many pods can be evicted right now

all 73 kubectl commands