Created
November 26, 2019 04:20
-
-
Save saiyam1814/d6701be598e0a8633aae106a4a1e076b to your computer and use it in GitHub Desktop.
This Gist is for deleting stuck terminating namespace in kubernetes
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
NAMESPACE=irritating-namespace | |
kubectl proxy | |
open other terminal for same instance | |
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