Centos

CentOS 8 steam 上的 Kuberenets,需要 systemd-resolved.service

  • July 29, 2021

我們已將 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服務吊艙後啟動?

CentOS steam 8 是否需要此服務才能執行 Kubernetes?

謝謝

對於 Centos Steam 8 OS,我需要啟動該systemd-reolved服務以使其工作。

systemctl status systemd-resolved.service
systemctl enable systemd-resolved.service

引用自:https://unix.stackexchange.com/questions/656201