Wednesday, March 9, 2022

Kubernetes - Upgrading Kubernetes

 



Get the version of the API server utility:

kubectl version --short

Get the version of the Control-Plane Component:

kubeadm version

Get the version of the Agent/Worker Component:

kubelet version


UPGRADING KUBECTL

Release the hold on the version of kubectl to allow it to upgrade:

sudo apt-mark unhold kubectl

Upgrade kubectl:

sudo apt install -y kubectl=<version number>

Verify the version of kubectl:

sudo kubectl version --short

Hold the version of kubectl:

sudo apt-mark hold kubectl


UPGRADING KUBEADM

Release the hold on kubeadm to allow it to upgrade:

sudo apt-mark unhold kubeadm

Plan the upgrade of all the controller components:

sudo kubeadm upgrade plan

Upgrade the controller components:

sudo apt install -y kubeadm=1.23.4-00

Verify the version of kubeadm:

sudo kubeadm version

Hold the version of kubeadm:

sudo apt-mark hold kubeadm


UPGRADING KUBELET

Release the hold on the version of kubectl to allow it to upgrade:

sudo apt-mark unhold kubectl

Upgrade the version of kubelet:

sudo apt install -y kubelet=<version number>

Verify the version of kubelet:

sudo kubelet version

Hold the version of kubelet:

sudo apt-mark hold kubelet

No comments:

Post a Comment

Fluentd

Open-source log data collector > why logs? - for compliance (auditing, company, business) - for security (transparency, monitoring, admin...