在 Ubuntu 上从 1.23 更新到 1.24 时,kubeadm 升级计划出现警告

在 Ubuntu 上从 1.23 更新到 1.24 时,kubeadm 升级计划出现警告

几周前,我将 kubernetes 1.22 升级到了 1.23。我长期使用 containerd 作为容器运行时。操作系统是 Ubuntu 22.04.3 LTS

现在,从 1.23 升级到 1.24 时,kubeadm upgrade plan会显示有关运行时的警告

W0917 12:14:33.970744   27728 initconfiguration.go:120] Usage of CRI endpoints without URL scheme is deprecated and can cause kubelet errors in the future. Automatically prepending scheme "unix" to the "criSocket" with value "/run/containerd/containerd.sock". Please update your configuration!

我做了大量的研究,想知道在哪里添加/修复设置才能摆脱这个警告。我至少对配置进行了更改/var/lib/kubelet/kubeadm-flags.env/etc/crictl.yaml文件,但没有成功。有人吗?

这是从 stack overflow 复制而来的,我把它放到那里是有原因的 :-( 在它关闭之前,Ola Ekdahl 对此添加了答案 - 谢谢。我把它添加到这里。

Run this command on your control plane and nodes.

sudo crictl config \
--set runtime-endpoint=unix:///run/containerd/containerd.sock \
--set image-endpoint=unix:///run/containerd/containerd.sock

这并不能解决问题。

答案1

安装 1.24-->1.25 后,此消息消失。现在版本为 1.29,任何步骤均无消息。

相关内容