gpt4 book ai didi

kubernetes - Kubernetes拒绝时的“Waiting for tearing down pods”

转载 作者:行者123 更新时间:2023-12-02 11:50:27 26 4
gpt4 key购买 nike

我在Ubuntu机器上安装了Kubernetes集群。它由三台计算机组成:一个主机/节点和两个节点。

当我关闭集群时,它永远不会停止打印“等待拆除 pods ”:

root@kubernetes01:~/kubernetes/cluster# KUBERNETES_PROVIDER=ubuntu ./kube-down.sh
Bringing down cluster using provider: ubuntu
Identity added: /root/.ssh/id_rsa (/root/.ssh/id_rsa)
No resources found
No resources found
service "kubernetes" deleted
No resources found
waiting for tearing down pods
waiting for tearing down pods
waiting for tearing down pods
waiting for tearing down pods
waiting for tearing down pods
waiting for tearing down pods
waiting for tearing down pods
waiting for tearing down pods
waiting for tearing down pods
waiting for tearing down pods
waiting for tearing down pods
waiting for tearing down pods
waiting for tearing down pods
waiting for tearing down pods
waiting for tearing down pods
waiting for tearing down pods
waiting for tearing down pods
waiting for tearing down pods

当我拒绝它时,没有pod或服务在运行。最后,我必须通过终止进程和停止服务来强制停止。

最佳答案

您可以通过运行找出它正在等待哪些 pod :
kubectl get pods --show-all --all-namespaces
那就是代码运行的地方:https://github.com/kubernetes/kubernetes/blob/1c80864913e4b9da957c45eef005b06dba68cec3/cluster/ubuntu/util.sh#L689

关于kubernetes - Kubernetes拒绝时的“Waiting for tearing down pods”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36978468/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com