关于kubernetes:k8s-由于资产无法清空导致-namespace-无法删除

37次阅读

共计 474 个字符,预计需要花费 2 分钟才能阅读完成。

状况:在删除 flux-system namespace 的时候,namespace 始终处于 Terminating 状态

kubectl get namespace flux-system

查看 flux-system 下的资源,有若干个 pod 未删除,始终卡在 Terminating 状态

kubectl -n flux-system get all

强制删除所有 pod

kubectl -n flux-system delete pod kustomize-controller-5c84db559f-7pcfd --force --grace-period 0
kubectl -n flux-system delete pod notification-controller-78db94d87d-g4t8l --force --grace-period 0
kubectl -n flux-system delete pod source-controller-778dccd496-k6fmj --force --grace-period 0

查看 pod 是否胜利删除

查看 flux-system 状态,发现 namespace 曾经被删除

正文完
 0