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, welcome to the kubeadm corner of the manual πŸ’– This page lives in section 1 of the kubernetes manual, and it was originally written by Eric Paris back in Jan 2015. Yes, a real elder. We stan a legacy author 🫢


🌸 NAME 🌸

kubeadm init phase kubeconfig admin β€” Generate a kubeconfig file for the admin to use and for kubeadm itself


πŸŽ€ SYNOPSIS πŸŽ€

kubeadm init phase kubeconfig admin [OPTIONS]

πŸ’… DESCRIPTION πŸ’…

So here's the vibe: this command generates the kubeconfig file for the admin and for kubeadm itself, and then it saves that file to admin.conf. That's it, that's the whole job. Two birds, one very tidy little config file. Periodt. πŸ’–


✨ OPTIONS ✨

  • --apiserver-advertise-address="" β€” The IP address the API Server will advertise it's listening on. If you don't set it, the default network interface gets used instead. Default is an empty string, bestie.
  • --apiserver-bind-port=6443 β€” Port for the API Server to bind to. Default: 6443 πŸ‘‘
  • --cert-dir="/etc/kubernetes/pki" β€” The path where to save and store the certificates. Default: /etc/kubernetes/pki.
  • --config="" β€” Path to a kubeadm configuration file. Default: empty.
  • --control-plane-endpoint="" β€” Specify a stable IP address or DNS name for the control plane. Default: empty. Yes, stable. Your control plane deserves a fixed address, main character energy only ✨
  • --dry-run=false β€” Don't apply any changes; just output what would be done. Default: false. Perfect for the "let me see the vibes first" girlies πŸ™ˆ
  • --kubeconfig-dir="/etc/kubernetes" β€” The path where to save the kubeconfig file. Default: /etc/kubernetes.
  • --kubernetes-version="stable-1" β€” Choose a specific Kubernetes version for the control plane. Default: stable-1.

🌈 OPTIONS INHERITED FROM PARENT COMMANDS 🌈

These ones come from the parent command, so they're not this command's, but they're still here and they still work πŸ’œ

  • --rootfs="" β€” The path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path. Default: empty.
  • --version=false β€” --version, --version=raw prints version information and quits; --version=vX.Y.Z... sets the reported version. Default: false.

πŸ¦‹ 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! 😭 Honestly iconic that we're still reading this in the group chat.


and that's a wrap, bestie πŸŽ€ This one comes from the Manuals shelf, User section, version KUBERNETES(1)(kubernetes) β€” no cap, go forth and generate that kubeconfig πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from