Questions tagged [kubelet]

The Kubernetes kubelet is the primary “node agent” that runs on each node. Questions about the kubelet are most likely OFF TOPIC FOR STACK OVERFLOW; consider asking cluster administration questions on another site like Server Fault.

The kubelet is a core part of that the primary “node agent” that runs on each node. The kubelet works in terms of a PodSpec. A PodSpec is a YAML or JSON object that describes a pod. The kubelet takes a set of PodSpecs that are provided through various mechanisms (primarily through the apiserver) and ensures that the containers described in those PodSpecs are running and healthy. The kubelet doesn’t manage containers which were not created by Kubernetes.

Application developers rarely need to be directly concerned with the kubelet operation or administration. Most questions about the kubelet are not programming-related and are off-topic for Stack Overflow; other sites like Server Fault or DevOps Stack Exchange would be more appropriate places to ask. On-topic questions might include, for example, the Go k8s.io/kubernetes/pkg/kubelet package.

Reference: http://kubernetes.io/docs/admin/kubelet/

343 questions
11
votes
2 answers

Kubelet stopped posting node status

Two of my cluster nodes gets Kubelet stopped posting node status in kubectl describe node sometimes. In logs of that nodes i see this: Dec 11 12:01:03 alma-kube1 kubelet[946]: E1211 06:01:03.166998 946 controller.go:115] failed to ensure node…
Nessero Karuzo
  • 133
  • 1
  • 2
  • 8
11
votes
3 answers

How to secure the read-only port 10255 in Google Kubernetes Engine (GKE)?

I have created a GKE private cluster (version: 1.13.6-gke.13) using the following command: gcloud container clusters create a-cluster-with-user-pass \ --network vpc-name \ --subnetwork subnet-name \ --enable-master-authorized-networks \ …
10
votes
3 answers

network plugin is not ready: cni config uninitialized

KubeletNotReady runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni config uninitialized I don't know how to make the network plugin ready
AATHITH RAJENDRAN
  • 4,689
  • 8
  • 34
  • 58
9
votes
1 answer

How to delete node in EKS managed node group if the Kubelet crashes or stops reporting?

I am using aws EKS with a managed node group. Twice in the passed couple of weeks I had a case where the Kubelet in one of the nodes crashed or stopped reporting back to the control plane. In this case I would expect the Autoscaling group to…
8
votes
3 answers

how to change kubelet working dir to somewhere else

kubernetes 1.7.x kubelet store some data in /var/lib/kubelet, how can I change it to somewhere else ? Because my /var is every small.
xren
  • 1,381
  • 5
  • 14
  • 29
8
votes
2 answers

kube-dns keeps restarting with kubenetes on coreos

I have Kubernetes installed on Container Linux by CoreOS alpha (1353.1.0) using hyperkube v1.5.5_coreos.0 using my fork of coreos-kubernetes install scripts at https://github.com/kfirufk/coreos-kubernetes. I have two ContainerOS…
ufk
  • 30,912
  • 70
  • 235
  • 386
8
votes
1 answer

hyperkube doesn't start any manifest from /etc/kubernetes/manifests

I have Container Linux by CoreOS alpha (1325.1.0) Installed on a pc at home. I played with kubernetes for a couple of month, but now after reinstalling ContainerOS and trying to install kubernetes using my fork at…
ufk
  • 30,912
  • 70
  • 235
  • 386
7
votes
1 answer

Kubernetes Health Checks Failing with Network Policies Enabled

When enabling only egress network policies, all readiness and liveness checks fail after pods are restarted. This is what I see when describing the pod: Warning Unhealthy 115s (x7 over 2m55s) kubelet, Readiness probe failed: Get…
7
votes
4 answers

kubelet.service: Main process exited, code=exited, status=255/n/a

I am making test Cluster following this instructions: https://kubernetes.io/docs/getting-started-guides/fedora/fedora_manual_config/ and https://kubernetes.io/docs/getting-started-guides/fedora/flannel_multi_node_cluster/ unfortunately when I check…
Roger
  • 111
  • 1
  • 1
  • 5
7
votes
3 answers

kubelet saying node "master01" not found

I try to stack up my kubeadm cluster with three masters. I receive this problem from my init command... [kubelet-check] Initial timeout of 40s passed. Unfortunately, an error has occurred: timed out waiting for the condition This error is…
manzion_111
  • 139
  • 1
  • 1
  • 7
7
votes
3 answers

Changing the CPU Manager Policy in Kubernetes

I'm trying to change the CPU Manager Policy for a Kubernetes cluster that I manage, as described here however, I've run into numerous issues while doing so. The cluster is running in DigitalOcean and here is what I've tried so far. 1. Since the…
satnam
  • 1,457
  • 4
  • 23
  • 43
7
votes
1 answer

Where does Microk8s keep kubelet.service?

I am trying to enable a FlexVolume driver on Microk8s on Ubuntu. To do that, it seems I have to edit the kubelet.service file. This is supposed to be stored in /etc/systemd/system/kubelet.service but it is't present in my installation. Where is it…
6
votes
2 answers

Kubelet - failed to "CreatePodSandbox" for coredns; failed to set bridge addr: could not add ip addr to "cni0": permission denied

EDIT 1 In response to the comments I have included additional information. $ kubectl get pods --namespace kube-system NAME READY STATUS RESTARTS AGE coredns-66bff467f8-lkwfn …
Riki
  • 193
  • 1
  • 10
6
votes
4 answers

Destination /etc/default/kubelet does not exist

I am trying to install kubernetes cluster with vagrant and ansible and it does not work. As the error message, I've got: TASK [Configure node ip] ******************************************************* fatal: [k8s-node-3]: FAILED! => {"changed":…
softshipper
  • 32,463
  • 51
  • 192
  • 400
6
votes
1 answer

Where are the Kubernetes kubelet logs located for the AWS EKS Clusters?

There are previous questions about Self managed Kubernetes clusters located here. But they don't cover the use case for Amazon Linux(AWS EKS provided AMIs) Where are the Kubernetes kubelet logs located? Where are the kubelet logs for EKS nodes?
eco
  • 1,254
  • 1
  • 12
  • 22
1
2
3
22 23