我已经kube-proxy
从主节点删除了 pod 以获取新的 kube-proxy 配置映射值,当我重新启动节点时 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
出现。