View pod topology spread

Inspect topology spread constraints on a pod

kubectl get pod <pod> -n <ns> -o jsonpath='{.spec.topologySpreadConstraints}'

tool
kubectl73 commands
tags
podsconfig

More kubectl commands

  • kubectl apply -f ./dir/ --prune -l app=<label> -n <ns>

    Apply manifests and remove stale objects matching the label selector

  • kubectl diff -f file.yaml

    Show what would change if you applied this manifest now

  • kubectl get pods -n <ns> -l app=<label> -o name | xargs -I{} kubectl exec {} -n <ns> -- <cmd>

    Run a command in every pod matching a label selector

  • kubectl get pods -n <ns> -w

    Live-refresh pod list as statuses change

  • kubectl top pods -A --sort-by=cpu

    CPU-sorted pod usage across all namespaces

all 73 kubectl commands