
몇 주 전에 저는 kubernetes 1.22를 1.23으로 업그레이드했습니다. 저는 오랫동안 컨테이너 런타임으로 Containerd를 사용하고 있습니다. Os는 우분투 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이며 어떤 단계에서도 메시지가 없습니다.