LinuxCommandLibrary

kubeadm

kubeadm

TLDR

Create a Kubernetes master node

$ kubeadm init
copy


Bootstrap a Kubernetes worker node and join it to a cluster
$ kubeadm join --token [token]
copy


Create a new bootstrap token with a TTL of 12 hours
$ kubeadm token create --ttl [12h0m0s]
copy


Check if the Kubernetes cluster is upgradeable and which versions are available
$ kubeadm upgrade plan
copy


Upgrade Kubernetes cluster to a specified version
$ kubeadm upgrade apply [version]
copy


View the kubeadm ConfigMap containing the cluster's configuration
$ kubeadm config view
copy


Revert changes made to the host by 'kubeadm init' or 'kubeadm join'
$ kubeadm reset
copy

Copied to clipboard