Get the version of the API server utility:
kubectl version --shortGet the version of the Control-Plane Component:
kubeadm versionGet the version of the Agent/Worker Component:
kubelet versionUPGRADING KUBECTL
Release the hold on the version of kubectl to allow it to upgrade:
sudo apt-mark unhold kubectlUpgrade kubectl:
sudo apt install -y kubectl=<version number>Verify the version of kubectl:
sudo kubectl version --shortHold the version of kubectl:
sudo apt-mark hold kubectlUPGRADING KUBEADM
Release the hold on kubeadm to allow it to upgrade:
sudo apt-mark unhold kubeadmPlan the upgrade of all the controller components:
sudo kubeadm upgrade planUpgrade the controller components:
sudo apt install -y kubeadm=1.23.4-00
Verify the version of kubeadm:
sudo kubeadm versionHold the version of kubeadm:
sudo apt-mark hold kubeadmUPGRADING KUBELET
Release the hold on the version of kubectl to allow it to upgrade:
sudo apt-mark unhold kubectlUpgrade the version of kubelet:
sudo apt install -y kubelet=<version number>Verify the version of kubelet:
sudo kubelet versionHold the version of kubelet:
sudo apt-mark hold kubelet
No comments:
Post a Comment