KUBERNETES(1)(kubernetes)
β¨ KUBERNETES(1)(kubernetes) β¨
okay bestie, pull up a chair, because we're doing the kubeadm manual pages and honestly? this one is a little bop π
manual name: kubernetes β and this page was originally put together by Eric Paris back in Jan 2015, which is basically the stone age but make it DevOps π¦
π NAME π
kubeadm completion β spit out shell completion code for whichever shell you're living in (bash or zsh). no cap.
πΈ SYNOPSIS πΈ
kubeadm completion [OPTIONS]
π DESCRIPTION π
So the vibe here is: you get shell completion code for the shell you asked for (bash or zsh), and then you have to evaluate that code for it to actually do anything. Like, the code isn't gonna complete itself, bestie. Once it's evaluated, you get interactive completion for all your kubeadm commands. The way you do that is by sourcing it from your .bash_profile. iconic behaviour fr fr.
β οΈ note: this requires the bash-completion framework. it's not optional, it's the whole thing.
To install it on Mac, use homebrew:
$ brew install bash-completion
Once it's installed, bash_completion must be evaluated. You can do that by adding this line to your .bash_profile:
$ source $(brew --prefix)/etc/bash_completion
If bash-completion isn't installed on Linux, please install the 'bash-completion' package through your distribution's package manager. yes, whichever one you use. you got this π«Ά
π Note for zsh users: [1] zsh completions are only supported in versions of zsh >= 5.2. if you're on something older... girl, upgrade π
β¨ OPTIONS INHERITED FROM PARENT COMMANDS β¨
--rootfs=""β the path to the 'real' host root filesystem. setting this makeskubeadmchrootinto the path you gave it. lowkey powerful, highkey know what you're doing π--version=falseβ--version,--version=rawprints version information and quits;--version=vX.Y.Z...sets the reported version. so it can tell you a version or set one, depending on how you feed it. main character energy π
π EXAMPLE π
# Install bash completion on a Mac using homebrew
brew install bash-completion
printf "\n# Bash completion support\nsource $(brew --prefix)/etc/bash_completion\n" >> $HOME/.bash_profile
source $HOME/.bash_profile
# Load the kubeadm completion code for bash into the current shell
source <(kubeadm completion bash)
# Write bash completion code to a file and source it from .bash_profile
kubeadm completion bash > ~/.kube/kubeadm_completion.bash.inc
printf "\n# Kubeadm shell completion\nsource '$HOME/.kube/kubeadm_completion.bash.inc'\n" >> $HOME/.bash_profile
source $HOME/.bash_profile
# Load the kubeadm completion code for zsh[1] into the current shell
source <(kubeadm completion zsh)
see how the zsh one has that little [1]? that's the "zsh >= 5.2" thing from up top. it's all connected, iykyk π§
π SEE ALSO π
π 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! π the "hopefully automatically generated" is sending me, honestly. king behaviour.
and that's the whole page, bestie π
this was KUBERNETES(1)(kubernetes) from the Manuals section, under User, and we're calling it a day. mwah π
π¦ 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