kubeadm upgrade
The steps for performing an upgrade using kubeadm are outlined in . For older versions of kubeadm, please refer to older documentation sets of the Kubernetes website.
You can use kubeadm upgrade diff
to see the changes that would be applied to static pod manifests.
In Kubernetes v1.15.0 and later, kubeadm upgrade apply
and will also automatically renew the kubeadm managed certificates on this node, including those stored in kubeconfig files. To opt-out, it is possible to pass the flag --certificate-renewal=false
. For more details about certificate renewal see the certificate management documentation.
Note: The commands kubeadm upgrade apply
and have a legacy --config
flag which makes it possible to reconfigure the cluster, while performing planning or upgrade of that particular control-plane node. Please be aware that the upgrade workflow was not designed for this scenario and there are reports of unexpected results.
kubeadm upgrade plan
Check which versions are available to upgrade to and validate whether your current cluster is upgradeable. To skip the internet check, pass in the optional [version] parameter
Check which versions are available to upgrade to and validate whether your current cluster is upgradeable. To skip the internet check, pass in the optional [version] parameter
Options
Options inherited from parent commands
—rootfs string | |
[EXPERIMENTAL] The path to the ‘real’ host root filesystem. |
Upgrade your Kubernetes cluster to the specified version
Synopsis
Options inherited from parent commands
—rootfs string | |
[EXPERIMENTAL] The path to the ‘real’ host root filesystem. |
kubeadm upgrade diff
Show what differences would be applied to existing static pod manifests. See also: kubeadm upgrade apply —dry-run
Synopsis
Show what differences would be applied to existing static pod manifests. See also: kubeadm upgrade apply —dry-run
Options
—rootfs string | |
[EXPERIMENTAL] The path to the ‘real’ host root filesystem. |
Upgrade commands for a node in the cluster
Synopsis
Upgrade commands for a node in the cluster
The “node” command executes the following phases:
Options
Options inherited from parent commands
—rootfs string | |
[EXPERIMENTAL] The path to the ‘real’ host root filesystem. |
What’s next
- kubeadm config if you initialized your cluster using kubeadm v1.7.x or lower, to configure your cluster for
kubeadm upgrade