kubernetes / kubernetes

Production-Grade Container Scheduling and Management
https://kubernetes.io
Apache License 2.0
107.2k stars 38.52k forks source link

Unable to join worker node to master node #124606

Closed Tanushriyt closed 2 weeks ago

Tanushriyt commented 2 weeks ago

Which jobs are failing?

sudo kubeadm join when i try to join worker node to master node it's throwing error /etc/sysconfig/kubelet looks like KUBELET_EXTRA_ARGS=

/etc/systemd/system/kubelet.service.d/10-kubeadm.conf Environment="KUBELET_KUBECONFIG_ARGS=--bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf --kubeconfig=/e`tc/kubernetes/kubelet.conf --cgroup-driver=cgroupfs"

Which tests are failing?

sudo kubeadm join token etc

[preflight] Running pre-flight checks [preflight] Reading configuration from the cluster... [preflight] FYI: You can look at this config file with 'kubectl -n kube-system get cm kubeadm-config -o yaml' [kubelet-start] Writing kubelet configuration to file "/var/lib/kubelet/config.yaml" [kubelet-start] Writing kubelet environment file with flags to file "/var/lib/kubelet/kubeadm-flags.env" [kubelet-start] Starting the kubelet [kubelet-start] Waiting for the kubelet to perform the TLS Bootstrap... [kubelet-check] Initial timeout of 40s passed.

Unfortunately, an error has occurred: timed out waiting for the condition

This error is likely caused by:

If you are on a systemd-powered system, you can try to troubleshoot the error with the following commands:

Since when has it been failing?

i installed kubeadm kubectl kubelet on my worker node and hold the tools after that i am getting the error

Testgrid link

No response

Reason for failure (if possible)

kubelet.service: Main process exited, code=exited, status=1/FAILURE kubelet.service: Failed with result 'exit-code'.

Anything else we need to know?

kubeadm version: &version.Info{Major:"1", Minor:"28", GitVersion:"v1.28.1", GitCommit:"8dc49c4b984b897d423aab4971090e1879eb4f23", GitTreeState:"clean", BuildDate:"2023-08-24T11:21:51Z", GoVersion:"go1.20.7", Compiler:"gc", Platform:"linux/amd64"}

kubectl versionClient Version: v1.28.1 Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3 The connection to the server localhost:8080 was refused - did you specify the right host or port?

kubelet status sudo systemctl status kubelet ● kubelet.service - kubelet: The Kubernetes Node Agent Loaded: loaded (/lib/systemd/system/kubelet.service; enabled; vendor preset: enabled) Drop-In: /etc/systemd/system/kubelet.service.d └─10-kubeadm.conf Active: active (running) since Mon 2024-04-29 15:31:08 IST; 5s ago Docs: https://kubernetes.io/docs/ Main PID: 17484 (kubelet) Tasks: 12 (limit: 18949) Memory: 24.2M CGroup: /system.slice/kubelet.service └─17484 /usr/bin/kubelet

ubuntu 20.04 and following https://www.letscloud.io/community/how-to-install-kubernetesk8s-and-docker-on-ubuntu-2004 these steps for installation

Relevant SIG(s)

/sig

k8s-ci-robot commented 2 weeks ago

There are no sig labels on this issue. Please add an appropriate label by using one of the following commands:

Please see the group list for a listing of the SIGs, working groups, and committees available.

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.
k8s-ci-robot commented 2 weeks ago

This issue is currently awaiting triage.

If a SIG or subproject determines this is a relevant issue, they will accept it by applying the triage/accepted label and provide further guidance.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.
neolit123 commented 2 weeks ago

a better place to ask would be on the support channels. please see: https://git.k8s.io/kubernetes/SUPPORT.md

/kind support /close

k8s-ci-robot commented 2 weeks ago

@neolit123: Closing this issue.

In response to [this](https://github.com/kubernetes/kubernetes/issues/124606#issuecomment-2082716899): >a better place to ask would be on the support channels. please see: >https://git.k8s.io/kubernetes/SUPPORT.md > >/kind support >/close Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.