Run one-off pod

Ephemeral pod for debugging; deleted on 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

    See all labels assigned to each node

  • kubectl uncordon <node>

    Re-enable scheduling on a previously cordoned node

  • kubectl get hpa -A

    Horizontal Pod Autoscaler current/desired replicas and metrics

  • kubectl describe resourcequota -n <ns>

    Used vs hard limits for CPU, memory, object counts in namespace

  • kubectl get pdb -A

    Show min-available and current healthy pod counts

all 73 kubectl commands