KUBERNETES(1)(kubernetes)

πŸ“¦
version 1.37.2 Β· 4 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 pages πŸ’– this one lives in the kubernetes manual, and it was originally scribbled down by Eric Paris back in Jan 2015. yes, a real person, with a real email, we'll get to that. 🫢


🌸 NAME 🌸

kubeadm config validate β€” read a file containing the kubeadm configuration API and report any validation problems πŸ‘‘

so like… you hand it a config file, it reads it, and it tells you if anything's wrong with it. that's the whole vibe. no notes. πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

kubeadm config validate [OPTIONS]

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so this command lets you validate a kubeadm configuration API file and report any warnings and errors. it's literally the vibe check for your config file, no cap. 🌈

here's the deal with the exit status, and this part matters so listen up:

  • if there are no errors, the exit status will be zero ✨
  • otherwise it will be non-zero πŸ’€

any unmarshaling problems β€” like unknown API fields β€” will trigger errors. unknown API versions and fields with invalid values will also trigger errors. and any other errors or warnings may be reported depending on contents of the input file. so basically, it's reading your file very closely and it has opinions. πŸ™ˆ

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

  • kubeadm.k8s.io/v1beta4

that's the one. the only one. she's the main character. πŸ‘‘


πŸ’… OPTIONS πŸ’…

  • --allow-deprecated-api=false β€” allow validation of deprecated APIs. lowkey living in the past but make it intentional. πŸ•°οΈ
  • --allow-experimental-api=false β€” allow validation of experimental, unreleased APIs. bestie is out here testing the unreleased stuff, we respect it. πŸ§ͺ
  • --config="" β€” path to a kubeadm configuration file. this is the file it's gonna validate, so like, definitely set it. πŸ“‚

🫢 OPTIONS INHERITED FROM PARENT COMMANDS 🫢

these ones come down from the parent command, like hand-me-downs but useful:

  • --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. so it'll go looking for one itself if you don't tell it where to look. πŸ”
  • --rootfs="" β€” the path to the 'real' host root filesystem. this will cause kubeadm to chroot into the provided path. (yes, 'real' is in quotes in the original, we're keeping it exactly like that, it's giving mysterious.) πŸŒ€
  • --version=false β€” --version, --version=raw prints version information and quits; --version=vX.Y.Z... sets the reported version. three modes, one flag, she contains multitudes. ⭐

🌈 SEE ALSO 🌈

that's it, that's the whole list, we keep it tight. πŸŽ€


πŸ’œ 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! 😭

shoutout to Eric, honestly, iconic of him. and yeah, the "hopefully automatically generated since" is real, we're not making that up, it's in the source. it's giving "this was a lot of manual work and I would like a robot to do it now." πŸ™


heads up bestie: this page is from the Manuals section, User category, and the source is KUBERNETES(1)(kubernetes) β€” so go forth, validate those configs, and may your exit status always be zero. πŸ’–βœ¨πŸŽ€
πŸ“¦ where this page comes from