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 so this is a page from the kubernetes manual, originally written by Eric Paris back in Jan 2015 πŸ’– and it's about a lil kubeadm subcommand that does one very specific thing. let's get into it 🫢


🌸 NAME 🌸

kubeadm certs renew apiserver-kubelet-client β€” renews the certificate that lets the API server talk to kubelet πŸ”βœ¨


πŸŽ€ SYNOPSIS πŸŽ€

kubeadm certs renew apiserver-kubelet-client [OPTIONS]

πŸ¦‹ DESCRIPTION πŸ¦‹

so basically, this command renews the certificate for the API server to connect to kubelet. that's the whole vibe πŸ’…

here's the tea tho β€” renewals run unconditionally, meaning it does NOT care whether your certificate is expired or not. it just goes. and extra attributes like SANs</>? those get pulled from the existing file/certificates, so you literally do not need to resupply them. no cap πŸ™Œ

by default, renewal tries to use the certificate authority in the local PKI managed by kubeadm. as an alternative, it's possible to use the K8s certificate API for certificate renewal β€” or, as a last option, to generate a CSR request. options on options, we love a flexible queen πŸ‘‘

⚠️ after renewal, to make the changes actually effective, you have to restart the control-plane components β€” and possibly re-distribute the renewed certificate if the file is used somewhere else too. don't skip this part fr fr 😭

πŸ’… OPTIONS πŸ’…

  • --cert-dir="/etc/kubernetes/pki" β€” the path where the certificates get saved πŸ’Ύ
  • --config="" β€” path to a kubeadm configuration file.
  • --kubeconfig="/etc/kubernetes/admin.conf" β€” the kubeconfig file to use when talking to the cluster. if this flag isn't set, a set of standard locations can be searched for an existing kubeconfig file πŸ”

πŸ‘‘ OPTIONS INHERITED FROM PARENT COMMANDS πŸ‘‘

  • --rootfs="" β€” the path to the 'real' host root filesystem. this makes kubeadm chroot into the path you gave it. mind the chroot bestie πŸŒ€
  • --version=false β€” --version, --version=raw prints version information and quits; --version=vX.Y.Z... sets the reported version ⭐

🌈 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! 😌✨


and that's the whole page bestie πŸŽ€ this one lives under the Manuals section in the User manual, and it's from KUBERNETES(1)(kubernetes) πŸ’– mwah, go restart those control-plane components πŸ’‹πŸ¦‹

πŸ“¦ where this page comes from