KUBERNETES(1)(kubernetes)

πŸ“¦
version 1.37.2 Β· 3 versions
, in arch rolling, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable

✨ 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 makes kubeadm chroot into the path you gave it. lowkey powerful, highkey know what you're doing πŸ’€
  • --version=false β€” --version, --version=raw prints 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