In mock exam 3, on Controlplane node we are not able to see the kubelet service . . .

Narendra Singh:
In mock exam 3, on Controlplane node we are not able to see the kubelet service or it’s binary. How’s that possible? How static pods are running then? I can see the kubelet configuration file which is inside /usr/lib/kubelet directory.

controlplane $ cd /var/lib/kubelet/
controlplane $ ls
config.yaml  cpu_manager_state  device-plugins  kubeadm-flags.env  pki  plugins  plugins_registry  pod-resources  pods
controlplane $ systemctl status kubelet
Failed to connect to bus: No such file or directory
controlplane $ which kubelet
controlplane $ k get po -n kube-system 
NAME                                   READY   STATUS    RESTARTS   AGE
coredns-f9fd979d6-8rn7p                1/1     Running   0          61m
coredns-f9fd979d6-vgp8l                1/1     Running   0          60m
etcd-controlplane                      1/1     Running   0          63m
kube-apiserver-controlplane            1/1     Running   0          63m
kube-controller-manager-controlplane   1/1     Running   0          63m
kube-proxy-kbzwz                       1/1     Running   1          62m
kube-proxy-ljvf6                       1/1     Running   0          62m
kube-proxy-s7fst                       1/1     Running   1          62m
kube-proxy-zs7w4                       1/1     Running   1          62m
kube-scheduler-controlplane            1/1     Running   0          63m
weave-net-4vtcg                        2/2     Running   1          62m
weave-net-4xnmk                        2/2     Running   0          62m
weave-net-6p96z                        2/2     Running   0          62m
weave-net-qrfxv                        2/2     Running   0          62m

John Paul:
ps aux | grep kubelet

Narendra Singh:

controlplane $ ps aux  | grep kubelet
root       802  0.0  0.0  11448   992 pts/2    S+   04:48   0:00 grep --color=auto kubelet

Narendra Singh:
@John Paul ^^

Tej_Singh_Rana:
Don’t be confused if a kubelet is not available in the master noded. If you run the same command in the worker nodes, you will see the kubelet. In a master node, only required services are running.

Narendra Singh:
okay @Tej_Singh_Rana