patternMinor
kubelet connecting to docker.sock instead of containerd.sock
Viewed 0 times
kubeletconnectingdockersockcontainerdinstead
Problem
Kubernetes version: latest
Installation method: kubeadm
Host OS: debian9
container runtime: containerd
Kubelet fails when starting and after inspecting the logs using journalctl -xeu kubelet i see that it tries to connect to the docker.sock socket instead of containerd.sock. I tried running kubeadm --config=config.yaml using this config file
I have also tried running the kubeadm with the container runtime 85 argument, also doesn’t work.
any other ideas are appreciated and thanks
Installation method: kubeadm
Host OS: debian9
container runtime: containerd
Kubelet fails when starting and after inspecting the logs using journalctl -xeu kubelet i see that it tries to connect to the docker.sock socket instead of containerd.sock. I tried running kubeadm --config=config.yaml using this config file
apiVersion: kubeadm.k8s.io/v1beta1
kind: InitConfiguration
nodeRegistration:
criSocket: "unix:///var/run/containerd/containerd.sock"I have also tried running the kubeadm with the container runtime 85 argument, also doesn’t work.
any other ideas are appreciated and thanks
Solution
In kubeadm docs
--cri-socket stringPath to the CRI socket to connect. If empty kubeadm will try to auto-detect this value; use this option only if you have more than one CRI installed or if you have non-standard CRI socket.
--cri-socket stringPath to the CRI socket to connect. If empty kubeadm will try to auto-detect this value; use this option only if you have more than one CRI installed or if you have non-standard CRI socket.
Context
StackExchange DevOps Q#13252, answer score: 2
Revisions (0)
No revisions yet.