Skip to content
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

Kubelet Join blocked by Port 10250 #2218

Closed
ghost opened this issue Jul 12, 2020 · 5 comments
Closed

Kubelet Join blocked by Port 10250 #2218

ghost opened this issue Jul 12, 2020 · 5 comments
Labels
kind/support Categorizes issue or PR as a support question.

Comments

@ghost
Copy link

ghost commented Jul 12, 2020

When I perform the kubeadm join on the worker node, I get the following error:

W0712 10:16:01.596870 1909863 join.go:346] [preflight] WARNING: JoinControlPane.controlPlane settings will be ignored when control-plane flag is not set.
[preflight] Running pre-flight checks
	[WARNING IsDockerSystemdCheck]: detected "cgroupfs" as the Docker cgroup driver. The recommended driver is "systemd". Please follow the guide at https://kubernetes.io/docs/setup/cri/
error execution phase preflight: [preflight] Some fatal errors occurred:
	[ERROR Port-10250]: Port 10250 is in use
[preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...`
To see the stack trace of this error execute with --v=5 or higher

I performed a netstat -ltnp | grep -w ":10250" i see kubelet.

I tried to stop the kubelet by systemctl stop kubelet, but it kept running.

What should I do in order to join my worker nodes into the kubeadm cluster?

@ghost
Copy link
Author

ghost commented Jul 12, 2020

i then killed the kubelet process by using sudo kill -9 <process> gotten further with the following failures

W0712 12:16:09.376069 2568305 join.go:346] [preflight] WARNING: JoinControlPane.controlPlane settings will be ignored when control-plane flag is not set.
[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 -oyaml'
[kubelet-start] Downloading configuration for the kubelet from the "kubelet-config-1.18" ConfigMap in the kube-system namespace
[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.
error execution phase kubelet-start: error uploading crisocket: timed out waiting for the condition
To see the stack trace of this error execute with --v=5 or higher

@neolit123
Copy link
Member

neolit123 commented Jul 12, 2020

always call kubeadm reset before kubeadm init/join

I tried to stop the kubelet by systemctl stop kubelet, but it kept running.

unclear why this doesn't stop the kubelet.

[kubelet-check] Initial timeout of 40s passed.
error execution phase kubelet-start: error uploading crisocket: timed out waiting for the condition

this usually means the kubelet is not healthy; have a look at its logs journalctl -xeu kubelet.

please use the support channels for support questions:
https://github.com/kubernetes/kubernetes/blob/master/SUPPORT.md
also the #kubeadm channel on k8s slack.

/triage support
/close

@k8s-ci-robot k8s-ci-robot added the kind/support Categorizes issue or PR as a support question. label Jul 12, 2020
@k8s-ci-robot
Copy link
Contributor

@neolit123: Closing this issue.

In response to this:

always call kubeadm reset before kubeadm init/join

I tried to stop the kubelet by systemctl stop kubelet, but it kept running.

unclear why this doesn't stop the kubelet.

[kubelet-check] Initial timeout of 40s passed.
error execution phase kubelet-start: error uploading crisocket: timed out waiting for the condition

this usually means the kubelet is not healthy.

please use the support channels for support questions:
https://github.com/kubernetes/kubernetes/blob/master/SUPPORT.md
also the #kubeadm channel on k8s slack.

/triage support
/close

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.

@hushi2222
Copy link

46ee81a463e245a83d208b05f21b4aa
i tried a lot of ways to kill kubelet but it still ocupied port 10250

@engineerit99999
Copy link

isof -i :10250
kill pid number

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/support Categorizes issue or PR as a support question.
Projects
None yet
Development

No branches or pull requests

4 participants