I’m trying to configure kubelet in my worker node with below setup.
Containerd 1.4.12
kubelet-1.23.4-0
kubeadm-1.23.4-0
kubectl-1.23.4-0
I’m not using Docker as Docker is getting deprecated in near future in K8s. My target is to configure K8s cluster with containerd.
I was able to start kubelet in Master node but when I try to start kubelet in worker node, getting below error. Can you please give me a hint to resolve this? Tried a lot but couldn’t.
kubelet.service - kubelet: The Kubernetes Node Agent
Loaded: loaded (/usr/lib/systemd/system/kubelet.service; enabled; vendor preset: disabled)
Drop-In: /usr/lib/systemd/system/kubelet.service.d
└─10-kubeadm.conf
Active: activating (auto-restart) (Result: exit-code) since Sat 2022-02-26 09:33:07 GMT; 1s ago
Docs: https://kubernetes.io/docs/
Process: 10651 ExecStart=/usr/bin/kubelet $KUBELET_KUBECONFIG_ARGS $KUBELET_CONFIG_ARGS $KUBELET_KUBEADM_ARGS $KUBELET_EXTRA_ARGS (code=exited, status=1/FAILURE)
Main PID: 10651 (code=exited, status=1/FAILURE)
Feb 26 09:33:07 xxxxx systemd[1]: Unit kubelet.service entered failed state.
Feb 26 09:33:07 xxxx systemd[1]: kubelet.service failed.
Logs details
Feb 25 19:21:22 xxxx kubelet[32380]: I0225 19:21:22.867277 32380 server.go:198] "Warning: For remote container runtime, --
Feb 25 19:21:22 xxxx kubelet[32380]: E0225 19:21:22.869085 32380 server.go:279] "Failed to construct kubelet dependencies"
Feb 25 19:21:22 xxxx systemd[1]: kubelet.service: main process exited, code=exited, status=1/FAILURE
Feb 25 19:21:22 xxxx systemd[1]: Unit kubelet.service entered failed state.
Feb 25 19:21:22 xxxx systemd[1]: kubelet.service failed.
Feb 25 19:21:23 xxxx systemd[1]: Stopped kubelet: The Kubernetes Node Agent.