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, sit down, hydrate, because we're doing the kubeadm config migrate thing and it's actually so much less scary than it sounds πŸ’– this one lives in the kubernetes manual section, section 1, and it's a CLI page so you already know it's gonna be chill.


🌸 NAME 🌸

kubeadm config migrate β€” read an older version of the kubeadm configuration API types from a file, and output the similar config object for the newer version πŸ¦‹


πŸŽ€ SYNOPSIS πŸŽ€

kubeadm config migrate [OPTIONS]

πŸ’… DESCRIPTION πŸ’…

okay so here's the vibe: this command lets you convert configuration objects of older versions to the latest supported version, locally in the CLI tool, without ever touching anything in the cluster. like, zero cluster contact. it's giving "just me and your laptop, bestie" 🫢

In this version of kubeadm, the following API versions are supported:

  • kubeadm.k8s.io/v1beta4

Further, kubeadm can only write out config of version "kubeadm.k8s.io/v1beta4", but read both types. so no matter which version you hand over to the --old-config parameter here, the API object will be read, deserialized, defaulted, converted, validated, and re-serialized when written to stdout or to --new-config if you specified it. that's a whole little glow-up pipeline and honestly? iconic ✨

In other words, the output of this command is what kubeadm actually would read internally if you submitted this file to "kubeadm init" β€” so you're basically peeking at what init would see. main character energy fr fr πŸ‘‘


πŸ”₯ OPTIONS πŸ”₯

  • --allow-experimental-api=false β€” allow migration to experimental, unreleased APIs. (yes, unreleased β€” you've been warned, proceed with vibes at your own risk πŸ™ˆ)
  • --new-config="" β€” path to the resulting equivalent kubeadm config file using the new API version. Optional! if you don't specify it, output will be sent to STDOUT instead. so chill.
  • --old-config="" β€” path to the kubeadm config file that is using an old API version and should be converted. This flag is mandatory. not optional, not a suggestion, it's the whole point πŸ’€

πŸ’œ OPTIONS INHERITED FROM PARENT COMMANDS πŸ’œ

  • --kubeconfig="/etc/kubernetes/admin.conf" β€” the kubeconfig file to use when talking to the cluster. If the flag is not 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. (yes, chroot. we're going there 🧚)
  • --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, no cap. this one was put together for the kubernetes manual, section 1, and it's dated way back in Jan 2015 β€” a true vintage. go migrate something, you absolute legend πŸŽ€πŸ¦‹πŸ’…
πŸ“¦ where this page comes from