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

Setting node name via kubeadm extra config leads to a crash #4063

Closed
simleo opened this issue Apr 5, 2019 · 6 comments
Closed

Setting node name via kubeadm extra config leads to a crash #4063

simleo opened this issue Apr 5, 2019 · 6 comments
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/bug Categorizes issue or PR as related to a bug. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. priority/backlog Higher priority than priority/awaiting-more-evidence.

Comments

@simleo
Copy link

simleo commented Apr 5, 2019

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 contain node "minikube" not found, which is probably due to this line in pkg/minikube/bootstrapper/kubeadm/versions.go:

NewUnversionedOption(Kubelet, "hostname-override", constants.DefaultNodeName),

I was able to make it work with:

minikube start --extra-config=kubeadm.node-name=foo --extra-config=kubelet.hostname-override=foo

This took me by surprise, since I was expecting the kubeadm setting to affect the kubelet 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 for minikube start that ensures a consistent handling of the flag in the various components.

@tstromberg tstromberg added help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/bug Categorizes issue or PR as related to a bug. labels Apr 8, 2019
@tstromberg
Copy link
Contributor

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 --node-name flag to minikube. Help wanted!

@tstromberg tstromberg added the priority/backlog Higher priority than priority/awaiting-more-evidence. label Apr 8, 2019
@tstromberg
Copy link
Contributor

It's unclear to me whether we should add a mechanism to set the node name outside of the -p (profile) feature. That said, I'm not sure if profiles currently sets a node name or not.

Regardless, we should do better than crashing.

@tstromberg tstromberg added the r/2019q2 Issue was last reviewed 2019q2 label May 23, 2019
@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Aug 21, 2019
@tstromberg tstromberg removed the r/2019q2 Issue was last reviewed 2019q2 label Sep 20, 2019
@fejta-bot
Copy link

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Oct 20, 2019
@fejta-bot
Copy link

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

@k8s-ci-robot
Copy link
Contributor

@fejta-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/bug Categorizes issue or PR as related to a bug. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. priority/backlog Higher priority than priority/awaiting-more-evidence.
Projects
None yet
Development

No branches or pull requests

4 participants