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
32
votes
2 answers

kubelet does not have ClusterDNS IP configured in Microk8s

I'm using MicroK8S in Ubuntu. I'm trying to run a simple "hello world" program but I got the error when a pod is created. kubelet does not have ClusterDNS IP configured and cannot create Pod using "ClusterFirst" policy. Falling back to "Default"…
Azeem Haider
  • 509
  • 1
  • 4
  • 10
26
votes
3 answers

Kubernetes - how to check current domain set by --cluster-domain from pod?

Kubernetes admin can use --cluster-domain to customize cluster domain instead of using default one: cluster.local Kubelet Configs. So the question is, how does an application pod check this domain in runtime?
Andy Luo
  • 305
  • 1
  • 4
  • 8
23
votes
4 answers

Check if the feature gate is enabled /disabled in kubernetes

In Kubernetes , is there a particular way I can check if a specific feature-gate is enabled/disabled. Say, I want to check if MountPropagation feature is enabled in my cluster. How do I do that.
ambikanair
  • 4,004
  • 11
  • 43
  • 83
23
votes
11 answers

kubelet failed with kubelet cgroup driver: "cgroupfs" is different from docker cgroup driver: "systemd"

Configuration for cgroup driver is right in /etc/systemd/system/kubelet.service.d/10-kubeadm.conf Environment="KUBELET_CGROUP_ARGS=--cgroup-driver=systemd" I also checked the Environment with cli $ systemctl show --property=Environment kubelet |…
Yuwen Yan
  • 4,777
  • 10
  • 33
  • 63
22
votes
6 answers

Where are Kubernetes' pods logfiles?

When I run $ kubectl logs I get the logs of my pods. But where are the files for those logs? Some sources says /var/log/containers/ others says /var/lib/docker/containers/ but I couldn't find my actual application's or pod's log.
gcstr
  • 1,466
  • 1
  • 21
  • 45
17
votes
1 answer

How to debug evicted pod on k8s

I have searched some but could not get much as I am new to k8s. My pods are evicted and I get message as: "Status: Failed Reason: Evicted Message: The node was low on resource: nodefs." Any help how can I figure out what is…
AhmFM
  • 1,552
  • 3
  • 23
  • 53
17
votes
4 answers

How to access the service deployed on one pod via another pod in Kubernetes?

Can anybody let me know how can we access the service deployed on one pod via another pod in a kubernetes cluster? Example: There is a nginx service which is deployed on Node1 (having pod name as nginx-12345) and another service which is deployed on…
Aditya Datta
  • 567
  • 2
  • 7
  • 17
17
votes
7 answers

Coredns in pending state in Kubernetes cluster

I am trying to configure a 2 node Kubernetes cluster. First I am trying to configure the master node of the cluster on a CentOS VM. I have initialized the cluster using 'kubeadm init --apiserver-advertise-address=172.16.100.6…
Aditya Datta
  • 567
  • 2
  • 7
  • 17
14
votes
2 answers

How to check kubelet configurations currently in use?

I basically want to find the hard eviction strategy that kubelet is currently using. I checked the settings in the /etc/systemd/system/kubelet.service file on my K8s node. In that the strategy I mentioned is as…
Amanjeet Singh
  • 323
  • 1
  • 3
  • 8
12
votes
2 answers

How to change the internal IP of Kubernetes worker nodes?

I am trying to deploy a K8s cluster from scratch using Kelsey Hightower's Learn Kubernetes the Hard Way guide. In my case I am using Vagrant and VirtualBox. Each of My Master and Workers have a DHCP network in eth0(10.0.2.x range) for pulling bits…
Vijay Nidhi
  • 161
  • 1
  • 1
  • 9
12
votes
6 answers

Kubernetes: kubectl top nodes/pods not working

When I do kubectl top pods/nodes I am getting the following error: metrics not available yet When I check the logs I am getting $ kubectl logs metrics-server-7df4c4484d-h75wr -n kube-system -c metrics-server I1008 12:02:55.159069 1…
Mallikarjun Br
  • 131
  • 1
  • 1
  • 6
12
votes
5 answers

Is there API documentation for Kubelet API

I know that the Kubelet process on each Kubernetes node exposes a simple API server, but I cannot find any documentation for it. Does someone know of a resource that has it?
adrian
  • 2,326
  • 2
  • 32
  • 48
11
votes
2 answers

GKE Konnectivity agent writes to closed connection

Since GKE upgraded to 1.21.10-gke.2000 I see these errors in the konnectivity-agent logs every 5 minutes or so. I cannot detect any consequences to these problems, but I cannot get them to go away either. Does anyone know what the problem is and how…
11
votes
1 answer

kubelet won't start after kuberntes/manifest update

This is sort of strange behavior in our K8 cluster. When we try to deploy a new version of our applications we get: Failed to create pod sandbox: rpc error: code = Unknown desc = failed to set up sandbox container "" network for pod…
Sachith Muhandiram
  • 2,819
  • 10
  • 45
  • 94
11
votes
1 answer

Config not found: /etc/kubernetes/admin.conf -- After setting up kubeadm worker node

Following this tutorial, I set up a worker node for my cluster. However, after running the join command and attempting kubectl get node to verify the node was connected, I am met with the following error W0215 17:58:44.648813 3084402 loader.go:223]…
arshbot
  • 12,535
  • 14
  • 48
  • 71
1
2 3
22 23