Skip to content

Instantly share code, notes, and snippets.

@300481
Last active June 30, 2020 09:10
Show Gist options
  • Save 300481/e0e76f752f764c6a55420fad76196e89 to your computer and use it in GitHub Desktop.
Save 300481/e0e76f752f764c6a55420fad76196e89 to your computer and use it in GitHub Desktop.
delete terminating namespace
# 1. kubectl get ns ${NAMESPACE} -o json > tmp.json
# 2. remove items from finalizers array in tmp.json
# 3. curl -k -H "Content-Type: application/json" -X PUT --data-binary @tmp.json http://127.0.0.1:8001/api/v1/namespaces/${NAMESPACE}/finalize
# source : https://success.docker.com/article/kubernetes-namespace-stuck-in-terminating
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment