老师,您好。
我查看pod,发现有不正常的状态。
[root@mysql-01 ~]# kubectl get pod -A
NAMESPACE NAME READY STATUS RESTARTS AGE
kube-system coredns-6d8c4cb4d-29cd4 1/1 Running 21 (40h ago) 13d
kube-system coredns-6d8c4cb4d-wsfgk 1/1 Running 22 (40h ago) 13d
kube-system etcd-master 1/1 Running 9 (40h ago) 13d
kube-system kube-apiserver-master 1/1 Running 12 (40h ago) 13d
kube-system kube-controller-manager-master 1/1 Running 29 (40h ago) 13d
kube-system kube-flannel-ds-5g622 0/1 Init:Error 3612 (5m23s ago) 12d
kube-system kube-flannel-ds-6q72m 1/1 Running 10 (40h ago) 13d
kube-system kube-flannel-ds-rh8zh 0/1 Init:CrashLoopBackOff 57 (12d ago) 12d
kube-system kube-proxy-kprv5 1/1 Running 0 12d
kube-system kube-proxy-sv9g5 1/1 Running 8 (40h ago) 13d
kube-system kube-proxy-twlg8 1/1 Running 0 12d
kube-system kube-scheduler-master 1/1 Running 30 (40h ago) 13d
test busybox 0/1 Pending 0 17h
test nginx 0/1 Pending 0 25h
其中网络插件不知道为什么有三个
kube-system kube-flannel-ds-5g622 0/1 Init:Error 3612 (5m23s ago) 12d
kube-system kube-flannel-ds-6q72m 1/1 Running 10 (40h ago) 13d
kube-system kube-flannel-ds-rh8zh 0/1 Init:CrashLoopBackOff 57 (12d ago) 12d
另外test的命名空间下的两个也有问题
test busybox 0/1 Pending 0 17h
test nginx 0/1 Pending 0 25h
用kubectl describe nodes命令查看,有以下错误信息。
Conditions:
Type Status LastHeartbeatTime LastTransitionTime Reason Message
---- ------ ----------------- ------------------ ------ -------
MemoryPressure False Sun, 20 Aug 2023 15:10:05 +0800 Sun, 20 Aug 2023 12:31:32 +0800 KubeletHasSufficientMemory kubelet has sufficient memory available
DiskPressure False Sun, 20 Aug 2023 15:10:05 +0800 Sun, 20 Aug 2023 12:31:32 +0800 KubeletHasNoDiskPressure kubelet has no disk pressure
PIDPressure False Sun, 20 Aug 2023 15:10:05 +0800 Sun, 20 Aug 2023 12:31:32 +0800 KubeletHasSufficientPID kubelet has sufficient PID available
Ready False Sun, 20 Aug 2023 15:10:05 +0800 Sun, 20 Aug 2023 12:31:32 +0800 KubeletNotReady container runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni config uninitialized
老师能帮忙看下问题吗