labring / sealos

Sealos is a production-ready Kubernetes distribution. You can run any Docker image on sealos, start high availability databases like mysql/pgsql/redis/mongo, develop applications using any Programming language.
https://cloud.sealos.io
Apache License 2.0
13.84k stars 2.07k forks source link

安装之后一直coredns pending #834

Closed likunding closed 2 years ago

likunding commented 2 years ago

哪个命令或者组件 image

zhangguanzhang commented 2 years ago
kubectl -n kube-system describe pod xxx
cyl-007 commented 2 years ago

重启containerd后,问题解决,关闭该单

zhucan commented 2 years ago

重启containerd后,问题解决,关闭该单

@cyl-007 这个原因有定位吗?

zhucan commented 2 years ago

https://github.com/containerd/containerd/blob/f18880a0edecf616a3552e34394b3619ca8e5647/pkg/cri/server/cni_conf_syncer.go#L86 sealos clean的时候不会卸载containerd,但是会删除/etc/cni这个目录,重新部署的的时候会创建这个目录,但是containerd现在忽略了这个event,所以要重启containerd重新加载cni plugin.

258532431 commented 1 month ago

重启containerd不起作用

sealos-ci-robot commented 1 month ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Restarting containerd doesn't work

258532431 commented 1 month ago

【node:k8s-master01】 Conditions: Type Status LastHeartbeatTime LastTransitionTime Reason Message


MemoryPressure False Sat, 03 Aug 2024 14:50:00 +0800 Sat, 03 Aug 2024 11:42:36 +0800 KubeletHasSufficientMemory kubelet has sufficient memory available DiskPressure False Sat, 03 Aug 2024 14:50:00 +0800 Sat, 03 Aug 2024 11:42:36 +0800 KubeletHasNoDiskPressure kubelet has no disk pressure PIDPressure False Sat, 03 Aug 2024 14:50:00 +0800 Sat, 03 Aug 2024 11:42:36 +0800 KubeletHasSufficientPID kubelet has sufficient PID available Ready False Sat, 03 Aug 2024 14:50:00 +0800 Sat, 03 Aug 2024 11:42:36 +0800 KubeletNotReady container runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:Network plugin returns error: cni plugin not initialized

【pod:registry.k8s.io/coredns/coredns:v1.10.1】 Events: Type Reason Age From Message


Warning FailedScheduling 74s (x39 over 3h11m) default-scheduler 0/1 nodes are available: 1 node(s) had untolerated taint {node.kubernetes.io/not-ready: }. preemption: 0/1 nodes are available: 1 Preemption is not helpful for scheduling..