5

Kubernetes version: v1.18.19
Cloud being used: bare-metal
Installation method: kubeadm
Host OS: CentOS7
CNI and version: calico/cni:v3.17.0
CRI and version: docker 18.09.9

I upgrade my k8s cluster from v1.18.19 to v1.19.16 refer to this guide: https://kubernetes.io/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade/

When I restart kubelet, the cluster turn down, and I find the message:

Error: failed to run Kubelet: unable to determine runtime API version: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial unix: missing address

It seems I should change the Container Runtime from docker-engine to containerd?

KeithTt
  • 71
  • 1
  • 7
  • I have got the same problem did you find a solution? – Chris G. Aug 15 '22 at 11:32
  • Is there a solution to the above error posted? – CuriousCase Sep 03 '22 at 11:25
  • 2
    I had a similar issue when I tried to run the local kubernetes cluster with version 1.24. In my case it is because they removed docker support and used only `containerd`. I needed to tell it to use containerd: `--container-runtime-endpoint=unix:///run/containerd/containerd.sock` From k8s website. And make sure you have it with the default settings: `mkdir -p /etc/containerd && containerd config default > /etc/containerd/config.toml` and restart `systemctl restart containerd` https://github.com/kubernetes/kubernetes/issues/73189#issuecomment-479278959 – E235 Sep 06 '22 at 12:28
  • There is an open source project by Mirantis: https://github.com/Mirantis/cri-dockerd Its an adapter that provides a shim for Docker Engine and maybe you can then use it here: `unix:///run/.sock` BTW, in my case I tried: `unix:///run/docker.sock` and it didn't work but maybe I needed to more things. – E235 Sep 06 '22 at 12:30
  • 3
    I had a similar issue when I tried to run the local kubernetes cluster with version 1.26. I used containerd as CRI. After use this command my issue SOLVED.#>`crictl config --set runtime-endpoint=unix:///run/containerd/containerd.sock --set image-endpoint=unix:///run/containerd/containerd.sock` – Mohammad Ravanbakhsh Dec 28 '22 at 06:38
  • I have answered this here , please vote up if it helps: https://stackoverflow.com/questions/75380734/kubeadm-initialization-fails-with-error-on-container-runtime/75409132#75409132 – Shubham Jain Feb 10 '23 at 09:30

0 Answers0