kubernetes of namespaces always Terminating

0. not try to forcibly remove

Bring delete -force --grace-period = 0 parameter can not be deleted;
kubectl delete namespace rook-ceph --force --grace-period=0

1.kubectl get namespace monitoring  -o json > tmp.json

2. Also opened a new window to run kubectl proxy API to run a proxy in the local 8081 port.

kubectl proxy --port=8081

3.curl -k -H "Content-Type: application/json" -X PUT --data-binary @tmp.json http://127.0.0.1:8001/api/v1/namespaces/monitoring/finalize

Reference: https://blog.csdn.net/tongzidane/article/details/88988542

 

Guess you like

Origin www.cnblogs.com/hixiaowei/p/11571475.html