Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save dijeesh/c30d999697a5c7ffcf20921038553c44 to your computer and use it in GitHub Desktop.

Select an option

Save dijeesh/c30d999697a5c7ffcf20921038553c44 to your computer and use it in GitHub Desktop.
1. Install jq
2. Run
(
NAMESPACE=YOUR-NAMESPACE
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
)
( Replace your NAMESPACE Here)
Ref :https://stackoverflow.com/questions/52369247/namespace-stucked-as-terminating-how-i-removed-it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment