如何加入节点
2019-04-22 本文已影响0人
MSNULL
Some riffs on this idea:
-
A new
kubeadm ca-cert-hash
command (name TBD) that just prints out the current CA hash. This would basically be the same thing as theopenssl
command we give in thekubeadm join
docs. -
Add a
--print-join-command
flag forkubeadm token create
that prints out the whole join command just likekubeadm init
does. This would hopefully make it easy to automate around by running something likekubeadm token create --print-join-command >> worker_init.sh
during provisioning. -
A new command
kubeadm token get <token id>
that gets the full token given the ID, with a--print-join-command
flag to optionally print the full join command instead of just the token.