[WARNING IsDockerSystemdCheck]: detected "cgroupfs" as the Docker cgroup driver. The recommended driver is "systemd". Please follow the guide at https://kubernetes.io/docs/setup/cri/ error execution phase preflight: [preflight] Some fatal errors occurred
时间: 2024-04-10 07:29:01 浏览: 13
这个警告表示检测到您的 Docker cgroup 驱动程序是 "cgroupfs",而推荐的驱动程序是 "systemd"。这可能会导致一些重错误。建议按照 Kubernetes 官方文档上的指南(https://kubernetes.io/docs/setup/cri/)进行操作,并将 Docker 的 cgroup 驱动程序更改为 "systemd",这样可以避免一些潜在的问题。在执行之前,请确保您具备足够的权限和了解相关的操作步骤。
相关问题
W0710 23:30:54.833759 12361 checks.go:835] detected that the sandbox image "registry.k8s.io/pause:3.6" of the container runtime is inconsistent with that used by kubeadm. It is recommended that using "registry.aliyuncs.com/google_containers/pause:3.9" as the CRI sandbox image.
您好!对于您的问题,建议您使用"registry.aliyuncs.com/google_containers/pause:3.9"作为CRI容器运行时的沙箱镜像。这是因为检测到您当前使用的沙箱镜像"registry.k8s.io/pause:3.6"与kubeadm使用的镜像不一致。更换为匹配的镜像可以确保系统的一致性和稳定性。
detected 127.0.0.53 nameserver, assuming systemd-resolved, so using resolv.conf: /run/systemd/resolve/resolv.conf
这是DNS客户端(通常是在Linux系统中)的一个提示信息,意思是该系统检测到正在运行 systemd-resolved DNS 解析器,因此将使用 `/run/systemd/resolve/resolv.conf` 路径下的 `resolv.conf` 文件。
在Linux系统中,`resolv.conf` 文件通常包含用于DNS解析的名称服务器地址。但是,在使用 `systemd-resolved` 作为DNS解析器时,该文件可能没有直接配置名称服务器地址的条目。相反,`systemd-resolved` 会使用其他配置文件来确定名称服务器地址,例如 `/etc/systemd/resolved.conf`。
为了避免与 `systemd-resolved` 的配置发生冲突,Linux系统通常会在 `/etc/resolv.conf` 文件中设置一个本地的DNS解析器地址 `127.0.0.53`,以便系统将DNS查询请求转发给 `systemd-resolved` 进行解析。
当DNS客户端检测到 `127.0.0.53` 名称服务器时,它会自动使用 `/run/systemd/resolve/resolv.conf` 路径下的 `resolv.conf` 文件作为名称服务器配置文件,而不是使用 `/etc/resolv.conf` 文件。
这个提示信息是正常的,通常不需要进行任何操作。如果您想修改DNS解析器的配置,可以编辑 `/etc/systemd/resolved.conf` 文件,然后重启 `systemd-resolved` 服务使其生效。