View pod topology spread kubectl
Inspect topology spread constraints on a pod
kubectl get pod <pod> -n <ns> -o jsonpath='{.spec.topologySpreadConstraints}'
more kubectl
all 73 commands →
Apply with prune
kubectl apply -f ./dir/ --prune -l app=<label> -n <ns>
Diff live vs local
kubectl diff -f file.yaml
Exec command in all pods
kubectl get pods -n <ns> -l app=<label> -o name | xargs -I{} kubectl exec {} -n <ns> -- <cmd>
Watch pod status changes
kubectl get pods -n <ns> -w
Top pods by CPU
kubectl top pods -A --sort-by=cpu