我已從主節點刪除kube-proxy
pod 以獲取新的 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
由於ClusterCIDR
IP變更kube-controller-manager
處於 CrashLoopBackOff
狀態。一旦我更新了舊IP ClusterCIDR
, kube-controller-manager
pod就啟動了,然後kube-proxy
出現了。