Difference between revisions of "Kubelet"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
|||
(74 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | + | {{lc}} | |
+ | <code>kubelet</code> process in [[Kubernetes]] is responsible for running containers on the node | ||
+ | * Configuration: <code>[[/etc/kubernetes/kubelet.conf]]</code> | ||
+ | * GitHub: https://github.com/openshift/origin/tree/master/vendor/k8s.io/kubernetes/pkg/kubelet | ||
+ | * Logs: | ||
+ | ** <code>[[/var/log/kubelet.log]]</code> | ||
+ | ** [[GKE]]: <code>[[gcloud logging read projects/your-project/logs/kubelet]]</code> | ||
+ | * Port: <code>kubelet</code> listen on [[List of TCP ports|port 10250]] | ||
− | + | * Installation Ubuntu: <code>[[snap install kubelet --classic]]</code> (<code>[[snap stop]] kubelet.daemon</code> or <code>[[snap start]] kubelet.daemon</code>) | |
− | + | * [[Kubelet logs]]: [[docker logs kubelet]] | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== Commands == | == Commands == | ||
− | [[systemctl]] | + | [[systemctl start]] snap.kubelet.daemon.service |
− | systemctl stop snap.kubelet.daemon.service | + | [[systemctl stop]] snap.kubelet.daemon.service |
+ | [[snap start]] [[kubelet]].daemon | ||
+ | Started. | ||
+ | systemctl status snap.kubelet.daemon.service | ||
− | == [[Kubernetes | + | == [[Kubernetes networking|Networking]] == |
The [[Container Network Interface (CNI)]] plugin is selected by passing <code>[[kubelet]]</code> the <code>--network-plugin=cni</code> | The [[Container Network Interface (CNI)]] plugin is selected by passing <code>[[kubelet]]</code> the <code>--network-plugin=cni</code> | ||
+ | |||
+ | == Errors == | ||
+ | * <code>[[The kubelet on the node ip-123.123.123.123 is not healthy]]</code> | ||
== Related terms == | == Related terms == | ||
− | * | + | * [[Pod Lifecycle Event Generator (PLEG)]] |
− | * | + | * Liveness probe: (<code>[[livenessProbe]]</code>) |
− | * <code>systemctl stop snap.kubelet.daemon.service</code> | + | * Readiness probe: (<code>[[readinessProbe]]</code>) |
+ | * <code>[[systemctl stop]] snap.kubelet.daemon.service</code> | ||
+ | * <code>[[kubectl describe pods]] | grep [[Unhealthy]]</code> | ||
+ | * [[Kubelet Container Runtime Interface (CRI)]] | ||
+ | * <code>[[systemctl status kubelet]]</code> | ||
+ | * <code>[[gcloud logging read]] projects/yourproject/logs/kubelet</code> | ||
+ | * [[Kubernetes controller manager]] | ||
+ | * <code>[[Conditions:]]</code> <code>[[kubelet is posting ready status. AppArmor enabled]]</code> | ||
+ | * <code>[[--kubelet-insecure-tls]]</code> | ||
+ | * [[Kubelet conditions]]: <code>[[MemoryPressure]]</code> | ||
+ | * <code>[[Node-pressure Eviction]]</code> | ||
+ | * <code>[[kubectl get events]] [[Starting kubelet]]</code> | ||
+ | * <code>[[cloud-node-lifecycle-controller]]</code> | ||
+ | * <code>[[kind: KubeletConfiguration]]</code> | ||
+ | * <code>[[oom_score_adj]]</code> | ||
+ | * [[Kubelet stopped posting node status.]] | ||
+ | * [[DNSConfigForming kubelet warning]] | ||
+ | * [[Kubelet Resource Metrics Endpoint]] | ||
+ | * <code>[[Scheduled]], [[Pulling]], [[Pulled]], [[Created]], [[Started]], [[Unhealthy]], [[Killing]]</code> | ||
== Activities == | == Activities == | ||
− | * [[CKA: Understand | + | * [[CKA v1.15: Understand LivenessProbes and ReadinessProbes]] |
+ | |||
+ | == News == | ||
+ | * 05/2022 [[Kubernetes 1.24]]: [[Dockershim removed from kubelet]] | ||
== See also == | == See also == | ||
− | * {{ | + | * {{kubelet}} |
+ | * {{Kubernetes components}} | ||
[[Category:Kubernetes]] | [[Category:Kubernetes]] |
Latest revision as of 09:42, 1 May 2024
kubelet
process in Kubernetes is responsible for running containers on the node
- Configuration:
/etc/kubernetes/kubelet.conf
- GitHub: https://github.com/openshift/origin/tree/master/vendor/k8s.io/kubernetes/pkg/kubelet
- Logs:
- Port:
kubelet
listen on port 10250
- Installation Ubuntu:
snap install kubelet --classic
(snap stop kubelet.daemon
orsnap start kubelet.daemon
) - Kubelet logs: docker logs kubelet
Commands[edit]
systemctl start snap.kubelet.daemon.service systemctl stop snap.kubelet.daemon.service
snap start kubelet.daemon Started. systemctl status snap.kubelet.daemon.service
Networking[edit]
The Container Network Interface (CNI) plugin is selected by passing kubelet
the --network-plugin=cni
Errors[edit]
Related terms[edit]
- Pod Lifecycle Event Generator (PLEG)
- Liveness probe: (
livenessProbe
) - Readiness probe: (
readinessProbe
) systemctl stop snap.kubelet.daemon.service
kubectl describe pods | grep Unhealthy
- Kubelet Container Runtime Interface (CRI)
systemctl status kubelet
gcloud logging read projects/yourproject/logs/kubelet
- Kubernetes controller manager
Conditions:
kubelet is posting ready status. AppArmor enabled
--kubelet-insecure-tls
- Kubelet conditions:
MemoryPressure
Node-pressure Eviction
kubectl get events Starting kubelet
cloud-node-lifecycle-controller
kind: KubeletConfiguration
oom_score_adj
- Kubelet stopped posting node status.
- DNSConfigForming kubelet warning
- Kubelet Resource Metrics Endpoint
Scheduled, Pulling, Pulled, Created, Started, Unhealthy, Killing
Activities[edit]
News[edit]
See also[edit]
kubelet
, Pod Lifecycle Event Generator (PLEG), Kubelet conditions,/etc/kubernetes/kubelet.conf, /var/log/kubelet.log
, Kubelet Container Runtime Interface (CRI),crictl
,context deadline exceeded
, E1122, E1124, Starting kubelet, NodeHasDiskPressure, NodeHasInsufficientMemory, rebooted, Node-pressure Eviction, Kubelet logs,manager: kubelet
- Kubernetes Components,
kube-proxy, kube-scheduler, kube-apiserver, kubelet, kubectl, kubeadm
, Kubernetes controller manager, Kubernetes controllers, Kubernetes Addons, Kubernetes Topology Manager
Advertising: