Delete the space cattle-system of Rancher. The status is always Terminating.
Fault phenomenon
The administrative web page of Kubernetes is proxied using Rancher2.0. Due to unknown reasons, the Rancher service cannot be enabled. Delete the namespace (cattle-system) that Rancher depends on, and the status has always been Terminating.
Solution kubectl patch namespace cattle-system-p'{"metadata": {"finalizers": []}'--type='merge'-n cattle-systemkubectl delete namespace cattle-system-- grace-period=0-- forcekubectl patch namespace cattle-global-data-p'{"metadata": {"finalizers": []}'--type='merge'-n cattle-systemkubectl delete namespace cattle-global-data-- grace-period=0-- forcekubectl patch namespace local-p'{"metadata": {" Finalizers ": []}'--type='merge'-n cattle-systemfor 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; donekubectl delete namespace local-- grace-period=0-- force