Created
October 9, 2019 18:15
-
-
Save BitProcessor/2ff36632b72b34d26f87705ea850b478 to your computer and use it in GitHub Desktop.
K8S: delete pods in namespace (restart)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NS= | |
kubectl get pods -n $NS --no-headers -o custom-columns=":metadata.name" | xargs kubectl -n $NS delete pod |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment