
幾週前,我將 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
文件,但沒有成功。有人嗎?
這是從堆疊溢出複製的,我出於某種原因把它放在那裡:-(在關閉之前,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,任何步驟都沒有訊息。