Search code examples
kuberneteskubernetes-pod

Why kubelet is running on kubernetes master node?


I have deployed a kubernetes cluster (1 master and 2 worker)on my local laptop using kubeadm.

Noted that the kubelet is running on master node as well. From the articles i have read earlier, kubelet is only needed on worker nodes. Can someone let me know why the kubernetes master node has kubelet service running?


Solution

  • The reason is that kubeadm uses containers (pods) to deploy etcd and the api server components. For this static manifests are created as yaml-files which are picked up by the kubelet on the master node to provide the infrastructure pods.

    An added benefit is that you have the master node metrics available from the kubernetes api.