Currently when the dockershim socket is used, kubeadm only passes the --network-plugin=cni to the kubelet and assumes the built-in dockershim. This is valid for versions <1.24, but with dockershim and related flags removed the kubelet will fail. Use preflight.GetKubeletVersion() to find the version of the host kubelet and if the version is <1.24 assume that it has built-in dockershim. Newer versions should will be treated as "remote" even if the socket is for dockershim, for example, provided by cri-dockerd. Update related unit tests.
6.5 KiB
6.5 KiB