kubelet service failed

Kubernetes kubelet Service Failed To Start

When you have installed kubelet in Linux machine and You see “ Kubernetes kubelet Service failed to start “ So there are many reasons behind it.

Check Out : Install Single Master Kubernetes Using Kubectl

Let’s Begin

You need to follow all the steps which shown below

Step 1 : You need to Disable the Selinux

vim /etc/sysconfig/selinux

selinux =disabled

Save the file and reboot the machine.

Check Out : Kubernetes Repo Problem with the SSL CA Certificate

Step 2 : You need to enable the br_netfilter on the machine.

And put these lines in this file vim /etc/sysctl.d/kb8.conf

net.bridge.bridge-nf-call-ipv6tables =1

net.bridge.bridge-nf-call-iptables =1

Save the file and run the below command

sysctl -p

sysctl –system

Check Out : How To Install Rancher Container Orchestration Server In Linux

Step 3 : Kubernetes does not support the Swap in Linux, So you have to disable it.

swapoff -a

And also comment the Swap entry in vim /etc/fstab

Now everything is setup and restart the Kubelet service. It should work now.

systemctl restart kubelet

You’re done

Sponsored