hardkubectl
Force-restart all pods in a namespace by deleting them (deployments recreate them)
command
kubectl delete pods --all -n NAMESPACEalso accepted
kubectl delete pods --allcommand
kubectl delete pods --all -n NAMESPACEalso accepted
kubectl delete pods --allPart of the Kubernetes CLI (kubectl) — Pods category.
| Flag | Purpose |
|---|---|
--all | Boolean flag |
-n | Boolean flag |
Test your recall — not just your reading.
Practice with interactive quiz →