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
ExecStart=/usr/bin/kubelet $KUBELET_KUBECONFIG_ARGS $KUBELET_CONFIG_ARGS $KUBELET_KUBEADM_ARGS $KUBELET_EXTRA_ARGS (code=exited, status=255) #83936
Comments
hi, the kubelet that is deployed next to the kubeadm package will crashloop until you start /triage support |
/remove-kind bug |
/close |
@neolit123: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
hello I think this needs to be re-open. I am attempting a 4 node cluster with 1 master 3 workers. 2 workers can join master, however 3 worker cannot get kubelet to start. we have attempted to re-image and install several times with different packages but same issue. Here is the info from this problem node. All are CentOS 7 docker -v kubelet --version [root@centos-7-k8s-worker-01 ~]# systemctl status kubelet Oct 25 16:05:02 centos-7-k8s-worker-01.novalocal systemd[1]: kubelet.service: main process exited, code=exited, status=255/n/a Master node: we are trying to add worker centos-7-k8s-worker-01.novalocal to this cluster. If you run kubadm init it will complete and provide token info to have nodes join. So it basically becomes a master. |
the kubelet logs e.g. using |
okay will run those. thanks. |
I ended up re-installing fresh setup and all good now. We can close ticket. thanks |
i am using CentOS8 as node, works fine after disabling swap. |
check also if the control plane node /etc/kubernetes/kubelet.conf is valid and up-to-date. if it is expired, the service kubelet start may fail. |
hi, i'm having the same problems starting kubelet. I.- presettings in OL8
sysctl --system
II.- Installing Docker
III.- Installing Kubernetes
4.- Start the Kubernetes services and enable them to run at startup. When checking the kubelet service [K8s.master01.ejto.mil]-[root]# systemctl status kubelet journalctl -xeu kubelet
|
the kubelet DEB/RPM packages setup the systemd unit files to have the kubelet "crash loop" (repeatedly try to start), until it has all the needed files (pointed by flags) ready. /var/lib/kubelet/config.yaml is one of them. you can stop the kubelet if you want it to not crash-loop. https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/
if you are using "kubeadm init/join" it will provided the required files and it should start properly. this is something that we want to change in the future: |
This is usually because you are lacking the |
sup googlers) error code [kubelet-check] The HTTP call equal to 'curl -sSL http://localhost:10248/healthz' failed with error: Get "http://localhost:10248/healthz": dial tcp [::1]:10248: connect: connection refused. for me 22.04 help this cascade worked, but if u get troubles whith keys use(only): ( sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 40976EAF437D05B5 <--- your last 8 code here & sudo cp /etc/apt/trusted.gpg /etc/apt/trusted.gpg.d) sudo apt-get update curl -fsSL https://dl.k8s.io/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /etc/apt/keyrings/kubernetes-archive-keyring.gpg echo "deb [signed-by=/etc/apt/keyrings/kubernetes-archive-keyring.gpg] https://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee /etc/apt/sources.list.d/kubernetes.list sudo apt-get update after that kubeadm init --pod-network-cidr=10.244.0.0/16 --cri-socket=unix:///var/run/crio/crio.sock do his job right! if trouble in JOIN node !!!! kubeadm join 10.10.14.89:6443 --token flXXXXXXXXXXXXXXXx --discovery-token-ca-cert-hash sha256:649dXXXXXXXXXXXXXXXX7a11c94 --cri-socket=unix:///var/run/crio/crio.sock THX ME |
After i have installed the kubelet am getting the exited and service never starts. Could you please help.
OS: CentOS Linux 7
Version of services:
[root@node system]# kubeadm version
kubeadm version: &version.Info{Major:"1", Minor:"16", GitVersion:"v1.16.1", GitCommit:"d647ddbd755faf07169599a625faf302ffc34458", GitTreeState:"clean", BuildDate:"2019-10-02T16:58:27Z", GoVersion:"go1.12.10", Compiler:"gc", Platform:"linux/amd64"}
[root@node system]# kubelet --version
Kubernetes v1.16.1
[root@node system]# docker -v
Docker version 1.13.1, build 7f2769b/1.13.1
[root@node system]#
Error:
[root@node system]# service kubelet status
Redirecting to /bin/systemctl status kubelet.service
● kubelet.service - kubelet: The Kubernetes Node Agent
Loaded: loaded (/usr/lib/systemd/system/kubelet.service; enabled; vendor preset: disabled)
Drop-In: /usr/lib/systemd/system/kubelet.service.d
└─10-kubeadm.conf
Active: activating (auto-restart) (Result: exit-code) since Tue 2019-10-15 01:54:06 EDT; 222ms ago
Docs: https://kubernetes.io/docs/
Process: 20919 ExecStart=/usr/bin/kubelet $KUBELET_KUBECONFIG_ARGS $KUBELET_CONFIG_ARGS $KUBELET_KUBEADM_ARGS $KUBELET_EXTRA_ARGS (code=exited, status=255)
Main PID: 20919 (code=exited, status=255)
Oct 15 01:54:06 node systemd[1]: kubelet.service: main process exited, code=exited, status=255/n/a
Oct 15 01:54:06 node systemd[1]: Unit kubelet.service entered failed state.
Oct 15 01:54:06 node systemd[1]: kubelet.service failed.
[root@node system]#
The text was updated successfully, but these errors were encountered: