Get the App
SLTechnology News&Howtos  ›  Servers  › 

Delete the space cattle-system of Rancher. The status is always Terminating.

Shulou Source: shulou.com Published: 2022-06-02 14:53:18 09月30日 Update

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

Tags: Status method cause failure phenomenon page agent service management space Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Shulou Tech Info macOS MariaDB Docker