kubelet connecting to docker.sock instead of containerd.sock 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
apiVersion: kubeadm.k8s.io/v1beta1
kind: InitConfiguration
nodeRegistration:
        criSocket: &quot;unix:///var/run/containerd/containerd.sock&quot;

I have also tried running the kubeadm with the container runtime  85  argument, also doesn’t work.
any other ideas are appreciated and thanks
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.