Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

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

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

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

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report