Kube-proxy pod 未啟動 v1.21.3

Kube-proxy pod 未啟動 v1.21.3

我已從主節點刪除kube-proxypod 以獲取新的 kube-proxy configmap 值,當我重新啟動節點時 kube-proxy 仍然沒有出現?

如何開始kube-proxy

# crictl ps
CONTAINER ID        IMAGE               CREATED             STATE               NAME                ATTEMPT             POD ID
19376bdbc55eb       c4d75af7e098e       17 minutes ago      Running             calico-node         2                   b4fb351577dd4
24253bf076500       6be0dc1302e30       17 minutes ago      Running             kube-scheduler      4                   182f9024a6957
57c5c9dec4ad2       3d174f00aa39e       17 minutes ago      Running             kube-apiserver      3                   e549a2bad6a02

集群資訊:

Kubernetes version: v1.21.3
Cloud being used: (put bare-metal if not on a public cloud)
Installation method: bare-metal
Host OS: CentOS Stream 8
CNI and version: Calico
CRI and version: containerd

答案1

由於ClusterCIDRIP變更kube-controller-manager處於 CrashLoopBackOff 狀態。一旦我更新了舊IP ClusterCIDRkube-controller-managerpod就啟動了,然後kube-proxy出現了。

相關內容