我们已将 kubernets 1.19 集群节点操作系统从 转换CentOS 8
为CentOS Steam 8
升级后节点变为Ready
状态,但 POD 未在该节点上启动。
收到此消息
kubelet open /run/systemd/resolve/resolv.conf: no such file or directory
kubelet[939]: E0628 11:38:45.492443 939 kuberuntime_sandbox.go:42] GeneratePodSandboxConfig for pod "kube-proxy-8rrl2_kube-system(09c30e9b-36a0-45b3-b64d-c052c0e27a9c)" failed: open /run/systemd/resolve/resolv.conf: no such file or directory
启动systemd-resolved.service
服务 Pod 后是否正在启动?
CentOS steam 8 上是否需要此服务才能让 Kubernetes 运行?
谢谢
答案1
对于 Centos Steam 8 操作系统,我需要启动该systemd-reolved
服务才能使其工作。
systemctl status systemd-resolved.service
systemctl enable systemd-resolved.service