Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

namespace stuck in terminating

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