KUBERNETES(1)(kubernetes)
π KUBERNETES(1)(kubernetes) β the kubeadm token create era π
okay bestie, welcome to the kubernetes manual section (that's the manual name, keep up π«Ά), and today's main character is kubeadm token create. Originally written down by Eric Paris back in January 2015 β yeah, a whole elder, we stan a pioneer π
β¨ NAME β¨
kubeadm token create β bestie, we're making bootstrap tokens on the server. that's it, that's the job π
β¨ SYNOPSIS β¨
kubeadm token create [OPTIONS]
β¨ DESCRIPTION β¨
okay so this command literally just creates a bootstrap token for you. you get to choose the usages for that token, the "time to live", and optionally a lil human friendly description, because tokens deserve lore too πΈ
the [token] is the actual token being written. and no cap, it needs to be a securely generated random token shaped exactly like this:
[a-z0-9]{6}.[a-z0-9]{16}
if you don't hand over a [token], don't even stress β kubeadm will generate a random one for you instead. iconic behaviour, honestly π
β¨ OPTIONS β¨
--certificate-key=""β when you use this alongside'--print-join-command', it prints the full'kubeadm join'flag you need to join the cluster as a control-plane. and listen, if you wanna create a brand new certificate key you must use'kubeadm init phase upload-certs --upload-certs'. no shortcuts, bestie π¦--config=""β path to a kubeadm configuration file. give it the file, it does the thing π--description=""β a human friendly description of how this token is used. cute, explanatory, we love β¨--groups=[system:bootstrappers:kubeadm:default-node-token]β extra groups this token will authenticate as when it's used for authentication. and it must match this regex exactly:
\Asystem:bootstrappers:[a-z0-9:-]{0,255}[a-z0-9]\z
yes it's giving strict, that's the point π
--print-join-command=falseβ instead of printing just the token, print the full'kubeadm join'flag needed to join the cluster using that token π₯--ttl=24h0m0sβ the duration before the token is automatically deleted (like1s,2m,3h). and if you set it to'0', the token will never expire β immortal token energy, use responsibly π--usages=[signing,authentication]β describes the ways this token can be used. you can pass--usagesmultiple times or just hand over a comma separated list of options. valid options:[signing,authentication]π
β¨ OPTIONS INHERITED FROM PARENT COMMANDS β¨
these come down from the parent command, they're the family heirlooms π
--dry-run=falseβ whether to enable dry-run mode or not. peek, don't commit, we love a cautious queen π--kubeconfig="/etc/kubernetes/admin.conf"β the kubeconfig file to use when talking to the cluster. if the flag isn't set, a set of standard locations can be searched for an existing kubeconfig file π§--rootfs=""β the path to the'real'host root filesystem. this will cause kubeadm to chroot into the provided path. lowkey powerful, highkey real π«Ά--version=falseβ--version,--version=rawprints version information and quits;--version=vX.Y.Z...sets the reported version β
β¨ SEE ALSO β¨
go read that one too bestie, it's the sibling, the duo, the it-girl pairing π
β¨ HISTORY β¨
January 2015, originally compiled by Eric Paris (eparis at redhat dot com) based on the kubernetes source material, but hopefully they have been automatically generated since! π (we're praying for the automation, fr fr)
and that's the whole vibe check β this manual page lives under Manuals, in the User section, for KUBERNETES(1)(kubernetes), and the header's date energy is that very same Jan 2015 moment. mwah, bye bestie π β¨π
π¦ where this page comes from
- arch rolling: kubeadm 1.37.2-1 Β· Apache-2.0
- fedora 43: kubernetes1.34-kubeadm 1.34.1-2.fc43 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND BSD-3-Clause-HP AND CC-BY-4.0 AND ISC AND MIT
- fedora 43: kubernetes1.34-kubeadm 1.34.10-1.fc43 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND BSD-3-Clause-HP AND CC-BY-4.0 AND ISC AND MIT
- fedora 43: kubernetes1.35-kubeadm 1.35.7-1.fc43 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND BSD-3-Clause-HP AND CC-BY-4.0 AND ISC AND MIT AND MPL-2.0
- fedora 43: kubernetes1.36-kubeadm 1.36.5-1.fc43 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND BSD-3-Clause-HP AND CC-BY-4.0 AND ISC AND MIT AND MPL-2.0
- fedora 43: kubernetes1.37-kubeadm 1.37.0-3.fc43
- fedora 43: kubernetes1.37-kubeadm 1.37.1-1.fc43 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND BSD-3-Clause-HP AND CC-BY-4.0 AND ISC AND MIT AND MPL-2.0
- fedora 44: kubernetes1.34-kubeadm 1.34.11-3.fc44 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND BSD-3-Clause-HP AND CC-BY-4.0 AND ISC AND MIT
- fedora 44: kubernetes1.34-kubeadm 1.34.6-1.fc44 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND BSD-3-Clause-HP AND CC-BY-4.0 AND ISC AND MIT
- fedora 44: kubernetes1.35-kubeadm 1.35.3-1.fc44 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND BSD-3-Clause-HP AND CC-BY-4.0 AND ISC AND MIT AND MPL-2.0
- fedora 44: kubernetes1.35-kubeadm 1.35.8-3.fc44 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND BSD-3-Clause-HP AND CC-BY-4.0 AND ISC AND MIT AND MPL-2.0
- fedora 44: kubernetes1.36-kubeadm 1.36.4-2.fc44
- fedora 44: kubernetes1.36-kubeadm 1.36.5-1.fc44 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND BSD-3-Clause-HP AND CC-BY-4.0 AND ISC AND MIT AND MPL-2.0
- fedora 44: kubernetes1.37-kubeadm 1.37.0-3.fc44
- fedora 44: kubernetes1.37-kubeadm 1.37.1-1.fc44 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND BSD-3-Clause-HP AND CC-BY-4.0 AND ISC AND MIT AND MPL-2.0
- nixos 26.05: kubernetes 1.36.3
- nixpkgs unstable: kubernetes 1.37.2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms