KUBERNETES(1)(kubernetes)
π KUBERNETES(1)(kubernetes) π
okay bestie, welcome to the kubernetes manual, section 1 β and today's main character is a lil command called kubeadm init phase control-plane apiserver. yes it's a mouthful, no we're not shortening it, it's iconic like that. π«Ά
β¨ NAME β¨
kubeadm init phase control-plane apiserver β she generates the kube-apiserver static Pod manifest. that's it, that's her whole job, and she ate. π
β¨ SYNOPSIS β¨
kubeadm init phase control-plane apiserver [OPTIONS]
β¨ DESCRIPTION β¨
Generates the kube-apiserver static Pod manifest. literally just that. one job, done flawlessly, no notes. π
β¨ OPTIONS β¨
okay this is the part where we go through every single flag, no skipping, because we do NOT leave details behind in this house. πΈ
--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. lowkey convenient.--apiserver-bind-port=6443β the port for the API Server to bind to. default6443, iconic number.--apiserver-extra-args=β a set of extra flags to pass to the API Server, or to override default ones, in form of=. go off, customize.--cert-dir="/etc/kubernetes/pki"β the path where to save and store the certificates. default is/etc/kubernetes/pki, keep those certs cozy. π--config=""β path to a kubeadm configuration file.--control-plane-endpoint=""β specify a stable IP address or DNS name for the control plane.--dry-run=falseβ don't apply any changes; just output what would be done. bestie behavior honestly, look before you leap. π--feature-gates=""β a set ofkey=valuepairs that describe feature gates for various features. options are:RootlessControlPlane=true|false(ALPHA - default=false). it's giving experimental energy, be careful out there. β οΈ--image-repository="registry.k8s.io"β choose a container registry to pull control plane images from. default isregistry.k8s.io.--kubernetes-version="stable-1"β choose a specific Kubernetes version for the control plane. defaultstable-1.--patches=""β path to a directory that contains files named"target[suffix][+patchtype].extension". for example,"kube-apiserver0+merge.yaml"or just"etcd.json"."target"can be one of"kube-apiserver","kube-controller-manager","kube-scheduler","etcd","kubeletconfiguration","corednsdeployment","kubeproxydaemonset"."patchtype"can be one of"strategic","merge"or"json"and they match the patch formats supported bykubectl. the default"patchtype"is"strategic"."extension"must be either"json"or"yaml"."suffix"is an optional string that can be used to determine which patches are applied first alpha-numerically. yes that's a lot of rules, she's complex like that. π--service-cidr="10.96.0.0/12"β use alternative range of IP address for service VIPs. default10.96.0.0/12.
β¨ OPTIONS INHERITED FROM PARENT COMMANDS β¨
these ones come from the parent command, so they're like... family flags. they show up to every party. π¦
--rootfs=""β the path to the'real'host root filesystem. this will causekubeadmto chroot into the provided path. (that's real with the quotes, she said what she said.)--version=falseβ--version,--version=rawprints version information and quits;--version=vX.Y.Z...sets the reported version. three modes, one flag, versatility queen. β¨
β¨ SEE ALSO β¨
go read her sister page, they're a matching set:
β¨ 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 way this manpage has been out here since 2015 and still didn't get auto-generated... anyway, we respect the origin story. π«Ά
and that's the whole page bestie β this one lives in the Manuals pile, User section, KUBERNETES(1)(kubernetes), dated Jan 2015. now go generate that apiserver manifest, you absolute legend. πβ¨π
π¦ where this page comes from
- arch rolling: kubeadm 1.37.2-1 Β· Apache-2.0
- fedora 43: kubernetes1.37-kubeadm 1.37.0-3.fc43
- fedora 43: kubernetes1.37-kubeadm 1.37.1-1.fc43 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND BSD-3-Clause-HP AND CC-BY-4.0 AND ISC AND MIT AND MPL-2.0
- fedora 44: kubernetes1.37-kubeadm 1.37.0-3.fc44
- fedora 44: kubernetes1.37-kubeadm 1.37.1-1.fc44 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND BSD-3-Clause-HP AND CC-BY-4.0 AND ISC AND MIT AND MPL-2.0
- nixpkgs unstable: kubernetes 1.37.2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms