알고보면 쓸데있는 신비한 잡학IT노트

upgrade kubernetes(k8s) node

남차장 2023. 3. 20. 17:08

On the node, run the following commands:

This will update the package lists from the software repository.

apt update

 

This will install the kubeadm version 1.26.0

apt-get install kubeadm=1.26.0-00

 

This will upgrade Kubernetes controlplane node.

kubeadm upgrade apply v1.26.0

 

Note that the above steps can take a few minutes to complete.

 

This will update the kubelet with the version 1.26.0.

apt-get install kubelet=1.26.0-00 

 

You may need to reload the daemon and restart kubelet service after it has been upgraded.

systemctl daemon-reload
systemctl restart kubelet