init
--apiserver-advertise-address string
--apiserver-bind-port int32
Default: 6443--apiserver-cert-extra-sans strings
--cert-dir string
Default: "/etc/kubernetes/pki"--certificate-key string
--config string
--control-plane-endpoint string
--cri-socket string
--dry-run
--feature-gates string
: A set of key=value pairs that describe feature gates for various featuresPublicKeysECDSA=true|false
(ALPHA - default=false)RootlessControlPlane=true|false
(ALPHA - default=false)UnversionedKubeletConfigMap=true|false
(BETA - default=true)
-h
,--help
--ignore-preflight-errors strings
--image-repository string
Default: "k8s.gcr.io"--kubernetes-version string
Default: "stable-1"--node-name string
--patches string
--pod-network-cidr string
--service-cidr string
Default: "10.96.0.0/12"--service-dns-domain string
Default: "cluster.local"--skip-certificate-key-print
--skip-phases strings
--skip-token-print
--token string
--token-ttl duration
Default: 24h0m0s--upload-certs
--rootfs string
api server
controller-manager
scheduler
[!TIP] kubeadm writes static Pod manifest files for control plane components to
/etc/kubernetes/manifests
static pod manifest generation for control plane components can be invoked individually with thekubeadm init phase control-plane all
commandreferences:
[!TIP] kubeadm waits (upto 4m0s) until
localhost:6443/healthz
(kube-apiserver liveness) returnsok
. However in order to detect deadlock conditions, kubeadm fails fast iflocalhost:10255/healthz
(kubelet liveness) orlocalhost:10255/healthz/syncloop
(kubelet readiness) don't returnok
within 40s and 60s respectively.
[!TIP] Please note that:
The
node-role.kubernetes.io/master
taint is deprecated and will be removed in kubeadm version 1.25Mark control-plane phase phase can be invoked individually with the
kubeadm init phase mark-control-plane
command
init steps
[!NOTE|label:references:]
install container runtime
High Availability
troubleshooting
Last updated