您现在的位置是:主页 > 数据库技术 > 数据库技术
删除ns后一直处于Terminating状态中该怎么办
IDCBT2022-01-11【服务器技术】人已围观
简介今天给大家介绍一下删除ns后一直处于Terminating状态中该怎么办。文章的内容小编觉得不错,现在给大家分享一下,觉得有需要的朋友可以了解一下,希望对大家有所帮助,下面跟着小编
今天给大家介绍一下删除ns后一直处于Terminating状态中该怎么办。文章的内容小编觉得不错,现在给大家分享一下,觉得有需要的朋友可以了解一下,希望对大家有所帮助,下面跟着小编的思路一起来阅读吧。
问题一:删除ns,一直处于Terminating状态中强制删除也是出现报错
warning: Immediate deletion does not wait for confirmation that the running resource has been terminated. The resource may continue to run on the cluster indefinitely. Error from server (Conflict): Operation cannot be fulfilled on namespaces "devtesting": The system is ensuring all content is removed from this namespace. Upon completion, this namespace will automatically be purged by the system.解决办法:
kubectl get namespace devtesting -o json > devtesting.json
# cat devtesting.json { "apiVersion": "v1", "kind": "Namespace", "metadata": { "annotations": { "cattle.io/status": "{\"Conditions\":[{\"Type\":\"ResourceQuotaInit\",\"Status\":\"True\",\"Message\":\"\",\"LastUpdateTime\":\"2019-09-23T07:24:02Z\"},{\"Type\":\"InitialRolesPopulated\",\"Status\":\"True\",\"Message\":\"\",\"LastUpdateTime\":\"2019-09-23T07:24:02Z\"}]}", "lifecycle.cattle.io/create.namespace-auth": "true" }, "creationTimestamp": "2019-09-23T07:23:03Z", "deletionTimestamp": "2019-09-30T06:35:09Z", "labels": { "name": "devtesting" }, "name": "devtesting", "resourceVersion": "6153812", "selfLink": "/api/v1/namespaces/devtesting", "uid": "a00e013b-0066-4b64-915d-05acde5c9a09" }, "spec": { "finalizers": [ "kubernetes" ] }, "status": { "phase": "Terminating" } }标签:很赞哦! ()