标签:rmi pac 删除 glob delete Cattle bec ati nali
故障现象使用Rancher2.0代理了Kubernetes的管理web页面。因未知原因,Rancher服务无法启用,删除Rancher依赖的namespace(cattle-system),状态一直是Terminating。
kubectl patch namespace cattle-system -p ‘{"metadata":{"finalizers":[]}}‘ --type=‘merge‘ -n cattle-system
kubectl delete namespace cattle-system --grace-period=0 --force
kubectl patch namespace cattle-global-data -p ‘{"metadata":{"finalizers":[]}}‘ --type=‘merge‘ -n cattle-system
kubectl delete namespace cattle-global-data --grace-period=0 --force
kubectl patch namespace local -p ‘{"metadata":{"finalizers":[]}}‘ --type=‘merge‘ -n cattle-system
for resource in `kubectl api-resources --verbs=list --namespaced -o name | xargs -n 1 kubectl get -o name -n local`; do kubectl patch $resource -p ‘{"metadata": {"finalizers": []}}‘ --type=‘merge‘ -n local; done
kubectl delete namespace local --grace-period=0 --force
删除Rancher的空间cattle-system,状态一直是Terminating
标签:rmi pac 删除 glob delete Cattle bec ati nali
原文地址:https://blog.51cto.com/michaelkang/2435467