-
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
kubeadm join labels node as master #1268
Comments
as an aside note, the apiserver fails with this:
which is most likely not required once I get rid of the master label on the node, however, I did have to copy a number of certs before kubeadm successfully completed its join. I've got a WIP script which combines it all here: https://github.com/joshuacox/kubash/blob/1.12.2/scripts/final_node.sh |
|
ok one note, do not add --experimental-control-plane to the node join but do add: --ignore-preflight-errors=FileAvailable--etc-kubernetes-pki-ca.crt and copy all the certs as I have done in those scripts, then run the joins and afterwards label the node as node. |
@fabriziopandini bugfix needed for v1.13? |
I think its more of a doc fix. Or get kubeadm join to ignore the ca.crt existing beforehand. |
@luxas
When joining a secondary control-plane you should add |
@fabianofranz you are indeed correct, I have modified as per your recommendations: https://gist.github.com/joshuacox/95aad9bee0c7e49e735ec3ec553b24ca and all seems to work, back to the drawing board on a few things to find out where I went wrong! Closing. |
@joshuacox happy to hear it worked! |
What keywords did you search in kubeadm issues before filing this one?
node label kubeadm join
this one is similar:
#202
and I've been subscribed to that for a very long time, but this is unique to the external etcd method
Choose one: BUG REPORT or FEATURE REQUEST
/kind bug
Versions
kubeadm version (use
kubeadm version
):Environment:
kubectl version
):ubuntu xenial on baremetal
uname -a
):What happened?
While following the external etcd method
my nodes were labeled as master upon join:
What you expected to happen?
I expected the same thing to happen when I do the stacked method
How to reproduce it (as minimally and precisely as possible)?
Follow the external etcd method and then run the resulting
kubeadm join
command.Anything else we need to know?
I had my fair share of issues with this method which can be seen here. Of which I ended up with two scripts that I am using to initialize my cluster:
prep the etcd nodes by running this script on the primary etcd node:
https://gist.github.com/joshuacox/9df2a029b04e63443b62c2824cf5fb95
and then initialize a master, this script can be ran on any host that has been keyed for ssh access to both the master and the primary etcd node
https://gist.github.com/joshuacox/f0f0b25e51df5638f3778d80d4af8c63
and the join command looks like this:
The text was updated successfully, but these errors were encountered: