-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Setting node name via kubeadm extra config leads to a crash #4063
Comments
When possible, we should avoid flags that cause crashes, especially when it's easy to do the right thing. I do like your idea of a |
It's unclear to me whether we should add a mechanism to set the node name outside of the Regardless, we should do better than crashing. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: 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. |
I tried setting the k8s node name with
minikube start --extra-config=kubeadm.node-name=foo
, but minikube crashed with a timeout. The kubelet logs containnode "minikube" not found
, which is probably due to this line inpkg/minikube/bootstrapper/kubeadm/versions.go
:I was able to make it work with:
This took me by surprise, since I was expecting the
kubeadm
setting to affect thekubelet
one in absence of any explicit settings for the latter. Maybe this just needs some extra docs, since the above workaround is available. Or perhaps a top-level--node-name
option forminikube start
that ensures a consistent handling of the flag in the various components.The text was updated successfully, but these errors were encountered: