Difference between revisions of "Kubelet"

From wikieduonline
Jump to navigation Jump to search
 
(58 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
 
<code>kubelet</code> process in [[Kubernetes]] is responsible for running containers on the node
 
<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>)
[[/etc/kubernetes/kubelet.conf]]
+
* [[Kubelet logs]]: [[docker logs kubelet]]
[[/var/log/kubelet.log]]
 
 
 
Kubelet listen on [[List of TCP ports|port 10250]]
 
 
 
 
 
[kubelet-check] The HTTP call equal to 'curl -sSL http://localhost:10248/healthz' failed with error: Get http://localhost:10248/healthz: dial tcp 127.0.0.1:10248: connect: connection refused.
 
 
 
== Installation ==
 
* <code>[[snap install kubelet --classic]]</code> (<code>[[snap stop]] kubelet.daemon</code> or <code>[[snap start]] kubelet.daemon</code>)
 
  
 
== Commands ==
 
== Commands ==
  [[systemctl]] start snap.kubelet.daemon.service
+
  [[systemctl start]] snap.kubelet.daemon.service
  systemctl stop snap.kubelet.daemon.service
+
  [[systemctl stop]] snap.kubelet.daemon.service
 
 
  
 
  [[snap start]] [[kubelet]].daemon
 
  [[snap start]] [[kubelet]].daemon
Line 25: Line 21:
 
== [[Kubernetes networking|Networking]] ==
 
== [[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 ==
* liveness probes: (<code>[[livenessProbe]]</code>)
+
* [[Pod Lifecycle Event Generator (PLEG)]]
* readiness probes: (<code>[[readinessProbe]]</code>)
+
* 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>
 
* <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 v1.15: Understand LivenessProbes and ReadinessProbes]]
 
* [[CKA v1.15: Understand LivenessProbes and ReadinessProbes]]
 +
 +
== News ==
 +
* 05/2022 [[Kubernetes 1.24]]: [[Dockershim removed from kubelet]]
  
 
== See also ==
 
== See also ==
 +
* {{kubelet}}
 
* {{Kubernetes components}}
 
* {{Kubernetes components}}
* {{K8s}}
 
  
  
 
[[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

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]

Activities[edit]

News[edit]

See also[edit]

Advertising: