kubelet
Definition
The kubelet is a critical component of Kubernetes, responsible for managing the lifecycle of containers on a node. It ensures that containers are running in a Pod as expected by communicating with the Kubernetes API server. The kubelet monitors the state of the Pods and reports back to the control plane, while also handling the execution of container runtime operations.
Secure Settings Example
# kubelet-config.yaml
apiVersion: kubelet.config.k8s.io/v1beta1
kind: KubeletConfiguration
authentication:
anonymous:
enabled: false
webhook:
enabled: true
cacheTTL: 2m0s
authorization:
mode: Webhook
readOnlyPort: 0
tlsCertFile: "/var/lib/kubelet/pki/kubelet.crt"
tlsPrivateKeyFile: "/var/lib/kubelet/pki/kubelet.key"
Insecure Settings Example
# kubelet-config.yaml
apiVersion: kubelet.config.k8s.io/v1beta1
kind: KubeletConfiguration
authentication:
anonymous:
enabled: true
authorization:
mode: AlwaysAllow
readOnlyPort: 10255
tlsCertFile: ""
tlsPrivateKeyFile: ""