0% found this document useful (0 votes)
2 views1 page

Kubernetes Tutorial - Restructured

The document describes the configuration of the Kubelet service in Linux, specifically the 10-kubeadm.conf file, which sets environment variables for Kubelet's kubeconfig and configuration file paths. It also provides the status of the kubelet.service, indicating it is active and running, along with its main process ID and memory usage. Additionally, it mentions the use case of static pods for running essential Kubernetes components like apiserver and etcd on each master node.

Uploaded by

Murali Mohan
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views1 page

Kubernetes Tutorial - Restructured

The document describes the configuration of the Kubelet service in Linux, specifically the 10-kubeadm.conf file, which sets environment variables for Kubelet's kubeconfig and configuration file paths. It also provides the status of the kubelet.service, indicating it is active and running, along with its main process ID and memory usage. Additionally, it mentions the use case of static pods for running essential Kubernetes components like apiserver and etcd on each master node.

Uploaded by

Murali Mohan
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Kubelet service configuration file in Linux:

/usr/lib/systemd/system/[Link].d/ [Link]

[root@sal-murpl01 [Link].d]# cat [Link] | grep -v ^#


[Service]
Environment="KUBELET_KUBECONFIG_ARGS=--bootstrap-kubeconfig=/etc/kubernetes/bootstrap-
[Link] --kubeconfig=/etc/kubernetes/[Link]"
Environment="KUBELET_CONFIG_ARGS=--config=/var/lib/kubelet/[Link]"
EnvironmentFile=-/var/lib/kubelet/[Link]
EnvironmentFile=-/etc/sysconfig/kubelet
ExecStart=
ExecStart=/usr/bin/kubelet $KUBELET_KUBECONFIG_ARGS $KUBELET_CONFIG_ARGS
$KUBELET_KUBEADM_ARGS $KUBELET_EXTRA_ARGS

Check this path in [Link] status in config file.


[root@sal-murpl01 manifests]# systemctl status [Link]
● [Link] - kubelet: The Kubernetes Node Agent
Loaded: loaded (/usr/lib/systemd/system/[Link]; enabled; vendor preset: disabled)
Drop-In: /usr/lib/systemd/system/[Link].d
└─[Link]
Active: active (running) since Fri 2021-11-19 00:19:20 IST; 2 months 1 days ago
Docs: [Link]
Main PID: 12708 (kubelet)
Tasks: 18
Memory: 97.8M
CGroup: /[Link]/[Link]
└─12708 /usr/bin/kubelet --bootstrap-kubeconfig=/etc/kubernetes/[Link] --
kubeconfig=/etc/kubernetes/[Link] --config=/var/lib/kubelet/[Link] --network-
plugin=cni --po...

>>
[root@sal-murpl01 manifests]# cat /var/lib/kubelet/[Link] | grep staticPodPath
staticPodPath: /etc/kubernetes/manifests

Use Case: each Master itself is having Static PODs to run it's own PODs like apiserver, controller-
manager and etcd

You might also like