LinuxCommandLibrary

kubeadm

TLDR

Initialize control plane

$ sudo kubeadm init
copy
Join worker node
$ sudo kubeadm join [control-plane:6443] --token [token] --discovery-token-ca-cert-hash [hash]
copy
Create join token
$ kubeadm token create --print-join-command
copy
Reset node
$ sudo kubeadm reset
copy
Upgrade cluster
$ sudo kubeadm upgrade apply [v1.28.0]
copy
Generate default config
$ kubeadm config print init-defaults
copy

SYNOPSIS

kubeadm command [options]

DESCRIPTION

kubeadm bootstraps Kubernetes clusters. It initializes control planes and joins worker nodes.
The tool handles certificates, kubelet config, and add-ons. It follows best practices for cluster setup.
kubeadm bootstraps Kubernetes clusters.

PARAMETERS

init

Initialize control plane.
join ENDPOINT
Join cluster as node.
reset
Reset node to pre-init state.
upgrade
Upgrade cluster components.
token CMD
Manage join tokens.
config CMD
Manage configuration.
--help
Display help information.

CAVEATS

Requires root. Container runtime needed. Network plugin not included.

HISTORY

kubeadm was created as the official cluster bootstrapping tool for Kubernetes, simplifying cluster setup.

SEE ALSO

kubectl(1), kubelet(8), kops(1)

Copied to clipboard