-
Notifications
You must be signed in to change notification settings - Fork 715
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
node-name different than hostname
not working
#584
Comments
I figured this one out. It seems that in addition to the At the very least this is a deficiency in the documentation. |
+1 to updating the docs. Hit this today. |
Could you clarify a bit about the Kubelet command? I'm facing the same issue and but it seems if I run the kubelet --hostname-override command in advance that fails as well. I feel like I'm missing something simple here. |
/assign @liztio |
Same issue for me. It fails at |
Implementing #846 will fix this issue. We're targeting automatic |
Gonna validate @luxas's solution |
This is fixed in v1.11 thanks to kubernetes/kubernetes#64706. |
@luxas is this fix only for the cli parameter --node-name in v.1.11? I am using v1.11.1 but using a config file and setting the nodeName value in the config file and kubelet is still using |
Check: https://godoc.org/k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm/v1alpha3 |
So how do I do that on AWS? I'm getting heps of these in
However it can be resolved, not sure why kubelet says it can't:
I'm using kubeadm 1.14.3 |
you can try asking in the #sig-aws or #sig-cloud-provider channel on the k8s slack. |
Is this a request for help?
Yes. I posted a question on slack but received no response.
What keywords did you search in kubeadm issues before filing this one?
"node-name", "Unable to register node"
Is this a BUG REPORT or FEATURE REQUEST?
BUG REPORT
When I run
kubeadm init
using thenodeName
configuration option or--node-name
command line flag I end up in a state wherekubeadm init
fails to complete.hostname:
kubeadm command:
kubeadm output:
relevant kubelet logs:
Versions
kubeadm version (use
kubeadm version
): kubeadm version: &version.Info{Major:"1", Minor:"8", GitVersion:"v1.8.4", GitCommit:"9befc2b8928a9426501d3bf62f72849d5cbcd5a3", GitTreeState:"clean", BuildDate:"2017-11-20T05:17:43Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}Environment:
kubectl version
): 1.8.4uname -a
): Linux ip-x-x-x-x 3.10.0-327.13.1.el7.x86_64 kubeadm join on slave node fails preflight checks #1 SMP Thu Mar 31 16:04:38 UTC 2016 x86_64 x86_64 x86_64 GNU/LinuxWhat happened?
Kubeadm init times out. Errors in kubelet logs about not being able to register node
<hostname>
even though I'm setting<nodeName>
What you expected to happen?
Kubeadm init completes using the nodeName I set.
How to reproduce it (as minimally and precisely as possible)?
Spin up ec2 instance in a VPC that has a private DNS zone (i.e. not ec2.internal).
hostname
should be ip-x-x-x-x. Install kubeadm 1.8.4 and run kubeadm init setting node-name to the fqdn ip-x-x-x-x.ec2.internal.Anything else we need to know?
The text was updated successfully, but these errors were encountered: