K8S- delete Terminating state namespace

 kubernetes delete Terminating state namespace

1, check whether there are resources under the namespace:

kubectl get all --namespace=cattle-system

2, delete resources:

kubectl delete pods <pod> --grace-period=0 --force

3, edit namespace:

kubectl edit ns cattle-system

Commented finalizers part, is deleted to save the ns

4. Check to see have been removed:

kubectl get ns

 

Guess you like

Origin www.cnblogs.com/weavepub/p/10929838.html