Kubernetes: v1.18 → Current version, v1.30 → Target version
Required Files
Kubernetes Files
v1.18 - v1.30 → Kubectl, kubeadm, kubelet filesDownload
Kubernetes CNI
Installing once is sufficient when transitioning from Kubernetes 1.18 to 1.19. Installation is not necessary in versions 1.19 and above.
Containerd
When transitioning to Kubernetes 1.24 version, transition to containerd usage should be made. Containerd should be 1.6+ and docker should be removed.Download
Version Upgrade
The version upgrade process consists of “1.18-1.19”, “1.20-1.23”, and “1.24-1.30” sections. In each section, the version upgrade process and solutions to possible errors are addressed.1.1) Upgrade from 1.18 to 1.19
Upgrade for Control Plane (Master) Node
Switch to the server that is Master(control-plane) and apply the following steps.1
Check current versions
Check kubeadm, kubelet, and kubectl versions before starting the upgrade process:
2
Upgrade Kubeadm version
Remove package hold for Kubeadm:Go to the folder where you extracted the file you downloaded from fss.apinizer.com:Install the .deb extension kubeadm file found inside:
3
Put node in maintenance mode
4
Perform Kubeadm upgrade
Upgrade Kubeadm to the installed v1.19.3 version with upgrade command:You should see a message indicating that the operation was successful as output on the screen.
5
Make node available again
6
Upgrade Kubelet and Kubectl versions
7
Restart Kubelet service
8
Perform version check
To view the version of the Master (control-plane) node:Check that the upgrade operation was successful as the version.
Upgrade for Worker Node
Worker node version upgrade is also performed with similar steps.1
Put worker node in maintenance mode
2
Switch to worker node server
Switch to the server where the worker node is located and perform kubeadm upgrade operation.Go to the folder where you extracted the file you downloaded from fss.apinizer.com:
3
Perform upgrade for worker node
4
Upgrade Kubelet and Kubectl versions
5
Restart Kubelet service
6
Make node available again
Run the following command on the master(control-plane) node to make the node available again:
7
Perform version check
To view the version of the Worker node:
1.2) Upgrade from 1.20 to 1.23
Versions 1.20-1.23 are updated one by one. The steps above are repeated for each version.1.3) Upgrade from 1.24 to 1.30
Versions 1.24-1.30 are updated one by one. The steps above are repeated for each version. However, containerd installation must be done when transitioning to 1.24.Containerd Installation (for Kubernetes 1.24)
When transitioning to Kubernetes 1.24 version, transition to containerd usage should be made instead of Docker.Containerd Installation
You can download the necessary file for Containerd installation.See the relevant documentation pages for Containerd installation and Docker transition operations.

