kubelet
systemd
service configure :
v1.12.3:
/etc/systemd/system/kubelet.service.d/10-kubeadm.conf
v1.9.16:
/usr/lib/systemd/system/kubelet.service.d/10-kubeadm.conf
check via:
environment file :
/etc/sysconfig/kubelet
kubelet
kubeconfig, kubelet configuration file :
/etc/kubernetes/kubelet.conf
kubeConfig file to use for the TLS Bootstrap, (it is only used if
/etc/kubernetes/kubelet.conf
does not exist):/etc/kubernetes/bootstrap-kubelet.conf
file containing the kubelet's ComponentConfig, workflow in
kubelet init
:/var/lib/kubelet/config.yaml
dynamic environment file that contains
KUBELET_KUBEADM_ARGS
:/var/lib/kubelet/kubeadm-flags.env
user-specified flag overrides with
KUBELET_EXTRA_ARGS
:/etc/default/kubelet
(for DEBs)/etc/sysconfig/kubelet
(for RPMs)
modfiy /var/lib/kubelet
/var/lib/kubelet
kuabelet configration
[!TIP] references:
--root-dir
string Default:/var/lib/kubelet
because of
or symolic link
config files
/etc/systemd/system/kubelet.service.d/10-kubeadm.conf
/etc/systemd/system/kubelet.service.d/10-kubeadm.conf
[!TIP] This file specifies the default locations for all of the files managed by kubeadm for the kubelet.
The KubeConfig file to use for the TLS Bootstrap is
/etc/kubernetes/bootstrap-kubelet.conf
, but it is only used if/etc/kubernetes/kubelet.conf
does not exist.The KubeConfig file with the unique kubelet identity is
/etc/kubernetes/kubelet.conf
.The file containing the kubelet's ComponentConfig is
/var/lib/kubelet/config.yaml
.The dynamic environment file that contains
KUBELET_KUBEADM_ARGS
is sourced from/var/lib/kubelet/kubeadm-flags.env
.The file that can contain user-specified flag overrides with
KUBELET_EXTRA_ARGS
is sourced from/etc/default/kubelet
(for DEBs), or/etc/sysconfig/kubelet
(for RPMs).KUBELET_EXTRA_ARGS
is last in the flag chain and has the highest priority in the event of conflicting settings.
Last updated