calico-kube-controllers启动事件报错
来源:5-7 网络插件-Calico_1
烟火的光芒
2022-05-03
[root@node-1 ~]# kubectl get pod -n kube-system
NAME READY STATUS RESTARTS AGE
calico-kube-controllers-6fcb5c5bcf-grhzj 0/1 ContainerCreating 0 8h
calico-node-lcqpd 0/1 CrashLoopBackOff 7 8h
calico-node-mnlt6 0/1 Running 8 8h
查看calico-kube-controllers pod事件,如下:
[root@node-1 ~]# kubectl describe pod calico-kube-controllers-6fcb5c5bcf-grhzj -n kube-system
Name: calico-kube-controllers-6fcb5c5bcf-grhzj
Namespace: kube-system
Priority: 2000000000
Priority Class Name: system-cluster-critical
Node: node-2/192.168.216.102
Start Time: Tue, 03 May 2022 01:14:50 +0800
Labels: k8s-app=calico-kube-controllers
pod-template-hash=6fcb5c5bcf
Annotations:
Status: Pending
IP:
IPs:
Controlled By: ReplicaSet/calico-kube-controllers-6fcb5c5bcf
Containers:
calico-kube-controllers:
Container ID:
Image: docker.io/calico/kube-controllers:v3.22.2
Image ID:
Port:
Host Port:
State: Waiting
Reason: ContainerCreating
Ready: False
Restart Count: 0
Liveness: exec [/usr/bin/check-status -l] delay=10s timeout=10s period=10s #success=1 #failure=6
Readiness: exec [/usr/bin/check-status -r] delay=0s timeout=1s period=10s #success=1 #failure=3
Environment:
ENABLED_CONTROLLERS: node
DATASTORE_TYPE: kubernetes
Mounts:
/var/run/secrets/kubernetes.io/serviceaccount from calico-kube-controllers-token-ng7cd (ro)
Conditions:
Type Status
Initialized True
Ready False
ContainersReady False
PodScheduled True
Volumes:
calico-kube-controllers-token-ng7cd:
Type: Secret (a volume populated by a Secret)
SecretName: calico-kube-controllers-token-ng7cd
Optional: false
QoS Class: BestEffort
Node-Selectors: kubernetes.io/os=linux
Tolerations: CriticalAddonsOnly op=Exists
node-role.kubernetes.io/master:NoSchedule
node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events:
Type Reason Age From Message
Normal Scheduled 15m default-scheduler Successfully assigned kube-system/calico-kube-controllers-6fcb5c5bcf-grhzj to node-2
Warning FailedCreatePodSandBox 8h kubelet Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox “d49d3f652789b7d6a8d203c7825764423b928091d59d70351d8e4c8202d23e83”: stat /var/lib/calico/nodename: no such file or directory: check that the calico/node container is running and has mounted /var/lib/calico/
Warning FailedCreatePodSandBox 8h kubelet Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox “432314b84a85cd75394864e8023ca5cffbafa0cee5559d9deeb276f0a290d8c9”: stat /var/lib/calico/nodename: no such file or directory: check that the calico/node container is running and has mounted /var/lib/calico/
Warning FailedCreatePodSandBox 8h kubelet Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox “0d8d4550ec6df68928701bf33b7bb8df3c1646f48287e13f5ff887e9ef24c864”: stat /var/lib/calico/nodename: no such file or directory: check that the calico/node container is running and has mounted /var/lib/calico/
Warning FailedCreatePodSandBox 8h kubelet Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox “6f10e061154ffd16cf2d8ea2583954c4db0638bd199a73316829f2cb62464a2e”: stat /var/lib/calico/nodename: no such file or directory: check that the calico/node container is running and has mounted /var/lib/calico/
Warning FailedCreatePodSandBox 8h kubelet Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox “43bb8837d4de1cb794b537afae93a16f4886d5f65b0e57023f4f047ee23d0ece”: stat /var/lib/calico/nodename: no such file or directory: check that the calico/node container is running and has mounted /var/lib/calico/
Warning FailedCreatePodSandBox 8h kubelet Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox “eaff3cf4bae30c9983a588d094268d2d895a0f72759852a67a7210694eee6136”: stat /var/lib/calico/nodename: no such file or directory: check that the calico/node container is running and has mounted /var/lib/calico/
Warning FailedCreatePodSandBox 8h kubelet Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox “91f83390a7c122d2b425e5b0637ccf7bb9c07dbd07afa3790a4041373cdd6de4”: stat /var/lib/calico/nodename: no such file or directory: check that the calico/node container is running and has mounted /var/lib/calico/
Warning FailedCreatePodSandBox 8h kubelet Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox “0709a48c786e8de0a53ef52af0e4908e151fd7ed0fc4258da7e25f26ecd8e74c”: stat /var/lib/calico/nodename: no such file or directory: check that the calico/node container is running and has mounted /var/lib/calico/
Warning FailedCreatePodSandBox 8h kubelet Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox “b7b5cb41782153b178b2811fdb7a6f40cc7189fbab49964bbba6a3ca5b1af361”: stat /var/lib/calico/nodename: no such file or directory: check that the calico/node container is running and has mounted /var/lib/calico/
Warning FailedCreatePodSandBox 8h (x40 over 8h) kubelet (combined from similar events): Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox “f0f77e8f00845e61ad1037e1e5c26766face3ce13c834b1d3f311c0bc624dc3c”: stat /var/lib/calico/nodename: no such file or directory: check that the calico/node container is running and has mounted /var/lib/calico/
1回答
-
刘果国
2022-05-03
根据错误提示继续跟进:check that the calico/node container is running and has mounted /var/lib/calico/
检查calico的node容器
122022-05-29
相似问题