Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

delete namespace stuck in terminating

# inline version

kubectl get namespace "stucked-namespace" -o json   | tr -d "
" | sed "s/"finalizers": [[^]]+]/"finalizers": []/"   | kubectl replace --raw /api/v1/namespaces/stucked-namespace/finalize -f -
 
PREVIOUS NEXT
Tagged: #delete #namespace #stuck #terminating
ADD COMMENT
Topic
Name
3+7 =