Skip to content

Instantly share code, notes, and snippets.

Created September 19, 2022 14:27
What would you like to do?
Delete a k8s namespace that is stuck in terminating state
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$NAMESPACE/finalize
killall kubectl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment