Skip to content

Instantly share code, notes, and snippets.

@BitProcessor
Created October 9, 2019 18:15
Show Gist options
  • Save BitProcessor/2ff36632b72b34d26f87705ea850b478 to your computer and use it in GitHub Desktop.
Save BitProcessor/2ff36632b72b34d26f87705ea850b478 to your computer and use it in GitHub Desktop.
K8S: delete pods in namespace (restart)
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