kubelet
- kubelet is the agent that runs on each node of the cluster (workers and masters)
Attributions- Register a new node within the Kubernetes cluster
- Create pods
-
Monitor nodes & pods (ensure it's running properly)
-
It listens instructions from the API server (E.g, deploy, destroy containers)
- kube-apiserver periodically fetches
status reportfrom the kubelet
Static Pods
kubeletcontinues to function even without the master node or any other worker nodes- Without a master node, it has node connection with the kube-apiserver and therefore cannot receive instructions
- The kubelet can however create
static podsby constantly reading manifests from a local directory/etc/kubernetes/manifests - This path is defined by the
pod-manifest-pathparameter - Or by specifying it in the
config.yamlfile (defined in theconfigparameter) with thestaticPodPathoption - Static pods are also
mirroredas objects in the kube-apiserver. - Mirrored objects are read-only and cannot be updated or deleted
- Static pods can only be modified by means of the manifest folder
- Static pods are used to deploy the
control plane componentsitself. As pods! (not conventional services). That's how kubeadm set up the cluster - That's why pods in
kube-systemnamespace are shown, they are only mirrors to static the pods