Skip to content

Instantly share code, notes, and snippets.

@coryodaniel
Created October 28, 2019 18:49
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save coryodaniel/574fe93b7528e84ec71ba778a8775112 to your computer and use it in GitHub Desktop.
Destroy a namespace
NAMESPACE=monitoring
kubectl proxy &
kubectl get namespace $NAMESPACE -o json |jq '.spec = {"finalizers":[]}' >temp.json
curl -k -H "Content-Type: application/json" -X PUT --data-binary @temp.json 127.0.0.1:8001/api/v1/namespaces/$NAMESPACE/finalize
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment