0.尝试强制删除不行

删除时带上–force --grace-period=0参数 ,无法删除;
kubectl delete namespace rook-ceph --force --grace-period=0

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

2.又新开了窗口运行kubectl proxy跑一个API代理在本地的8081端口。

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

参考:https://blog.csdn.net/tongzidane/article/details/88988542

 

相关文章:

  • 2022-02-06
  • 2021-11-03
  • 2021-09-02
  • 2021-06-27
  • 2021-10-08
  • 2021-07-28
  • 2021-11-27
  • 2021-08-16
猜你喜欢
  • 2022-01-09
  • 2022-12-23
  • 2021-11-17
  • 2021-12-14
  • 2021-05-14
  • 2022-12-23
相关资源
相似解决方案