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

Bootstrap Token #110

Closed
rmb938 opened this issue Dec 19, 2017 · 1 comment
Closed

Bootstrap Token #110

rmb938 opened this issue Dec 19, 2017 · 1 comment

Comments

@rmb938
Copy link

rmb938 commented Dec 19, 2017

Hey, I just read part of your blog post "Letter to Santa Kube" and saw your complaint about the kubeadm bootstrap token.

You can easily list all kubeadm tokens by running kubeadm token list.

Or even better you can generate the token ahead of time before initializing by using kubeadm token generate then passing that to init via kubeadm init --token ${token_here}

@jpetazzo
Copy link
Owner

Hi! Thanks a lot for the feedback. Unfortunately, kubeadm token list gives a formatted output; so to retrieve the token I have to add a bit of processing (e.g. with grep or awk or similar commands). It's not a big deal but I don't like to parse "human-readable" output, because it might change from one version to another. That's why I like the docker swarm join-token -q command: it will output the token, just the token, without anything else.

However, you're totally right, kubeadm token generate looks like it's waaaay simpler than my current hack :-)

Thank you for the suggestion, I'll implement it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants