-
Notifications
You must be signed in to change notification settings - Fork 39.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG REPORT: Clean new install on CentOS7x kubelet fails to start with error: kubelet: error: failed to run Kubelet: invalid kubeconfig: stat /etc/kubernetes/kubelet.conf: no such file or directory #40969
Comments
This is predictable behavior which allow k8s installer (like kubeadm) to bootstrap kubelet. |
Ok thanks, I simply ignored the error and continued on with the next step in the guide and it seemed to work. |
hi. I'm stuck in the part where they create the statefulset, with this following error: Temporarily unable to list nodes (will retry) This shows up after kubeadm init on the master. Any ideas? |
why this is closed without any solution? what's the purpose for reporting? |
I meet the same problem too, on centos 7 , the kubelet always
|
please switchoff your swap memory i faced same problem and when i remove swap entry from my /etc/fstab file .then it worked in my case.also do swapoff |
i swithedoff the swap memory.But i still faces the same problem |
#yum install -y kubelet kubeadm kubectl docker |
even in docker Version: 1.13.1 same issue |
@aoxn if it's predictable, why does it log an error message? :) |
Kubeadm reset |
Hi Guys, Installed k8s following this --> https://www.howtoforge.com/tutorial/centos-kubernetes-docker-cluster/ [root@kekecentest04 system]# rpm -aq | grep -i kube CentOS Linux release 7.4.1708 (Core) ==== kubeadm version ==== ==== docker version ==== installed using tarball Server: ==== output of journalctl _SYSTEMD_UNIT=kubelet.service ==== ==== output while tried creating config.yaml from solution someone suggested ==== |
BUG REPORT
Clean / new install(s) on CentOS7x kubelet fails to start with error:
kubelet: error: failed to run Kubelet: invalid kubeconfig: stat /etc/kubernetes/kubelet.conf: no such file or directory
Kubernetes version (use
kubectl version
):kubelet --version
Kubernetes v1.4.1
kubectl version
Client Version: version.Info{Major:"1", Minor:"4", GitVersion:"v1.4.1", GitCommit:"33cf7b9acbb2cb7c9c72a10d6636321fb180b159", GitTreeState:"clean", BuildDate:"2016-10-10T18:19:49Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"linux/amd64"}
The connection to the server localhost:8080 was refused - did you specify the right host or port?
Environment:
Cloud provider or hardware configuration:
New clean install of Centos7x
OS (e.g. from /etc/os-release):
cat /etc/redhat-release
CentOS Linux release 7.3.1611 (Core)
Kernel (e.g.
uname -a
):uname -a
Linux VA1EWTKTC02 3.10.0-327.18.2.el7.x86_64 Unit test coverage in Kubelet is lousy. (~30%) #1 SMP Thu May 12 11:03:55 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
What happened:
Following official guide here:
https://lukemarsden.github.io/docs/getting-started-guides/kubeadm/
Near the top section of the guide, when using CentOS7x and the command outlined in the guide is:
systemctl enable kubelet && systemctl start kubelet
kublet fails to start and an error is logged:
kubelet: error: failed to run Kubelet: invalid kubeconfig: stat /etc/kubernetes/kubelet.conf: no such file or directory
What you expected to happen:
systemctl start kubelet
should have started kubelet
How to reproduce it (as minimally and precisely as possible):
Start with any typical minimal clean CentOS7x OS install.
Follow this official guide:
https://lukemarsden.github.io/docs/getting-started-guides/kubeadm/
Barely get down the page following the guide and boom, kubelet won't start.
systemctl enable kubelet && systemctl start kubelet
systemctl status kubelet
● kubelet.service - Kubernetes Kubelet Server
Loaded: loaded (/etc/systemd/system/kubelet.service; enabled; vendor preset: disabled)
Drop-In: /etc/systemd/system/kubelet.service.d
└─10-kubeadm.conf
Active: activating (auto-restart) (Result: exit-code) since Sat 2017-02-04 15:19:24 UTC; 4s ago
Docs: https://github.com/kubernetes/kubernetes
Process: 6410 ExecStart=/usr/bin/kubelet $KUBELET_KUBECONFIG_ARGS $KUBELET_SYSTEM_PODS_ARGS $KUBELET_NETWORK_ARGS $KUBELET_DNS_ARGS $KUBELET_EXTRA_ARGS (code=exited, status=1/FAILURE)
Main PID: 6410 (code=exited, status=1/FAILURE)
Anything else we need to know:
cat /var/log/messages
Feb 4 22:49:02 VA1EWTKTC02 systemd: kubelet.service holdoff time over, scheduling restart.
Feb 4 22:49:02 VA1EWTKTC02 systemd: Cannot add dependency job for unit microcode.service, ignoring: Unit is not loaded properly: Invalid argument.
Feb 4 22:49:02 VA1EWTKTC02 systemd: Started Kubernetes Kubelet Server.
Feb 4 22:49:02 VA1EWTKTC02 systemd: Starting Kubernetes Kubelet Server...
Feb 4 22:49:02 VA1EWTKTC02 kubelet: error: failed to run Kubelet: invalid kubeconfig: stat /etc/kubernetes/kubelet.conf: no such file or directory
Feb 4 22:49:02 VA1EWTKTC02 systemd: kubelet.service: main process exited, code=exited, status=1/FAILURE
Feb 4 22:49:02 VA1EWTKTC02 systemd: Unit kubelet.service entered failed state.
Feb 4 22:49:02 VA1EWTKTC02 systemd: kubelet.service failed.
The text was updated successfully, but these errors were encountered: