업그레이드 계획 수립
root@cp-k8s:~# kubeadm upgrade plan
[upgrade/config] Making sure the configuration is correct:
[preflight] Running pre-flight checks.
[upgrade/config] Reading configuration from the cluster...
[upgrade/config] FYI: You can look at this config file with 'kubectl -n kube-system get cm kubeadm-config -o yaml'
[upgrade] Running cluster health checks
[upgrade] Fetching available versions to upgrade to
[upgrade/versions] Cluster version: 1.30.4
[upgrade/versions] kubeadm version: v1.30.0
I0829 14:24:58.467683 477828 version.go:256] remote version is much newer: v1.31.0; falling back to: stable-1.30
[upgrade/versions] Target version: v1.30.4
[upgrade/versions] Latest version in the v1.30 series: v1.30.4
kubeadm 업그레이드
root@cp-k8s:~# kubeadm version
root@cp-k8s:~# apt-get install kubeadm=1.30.1-1.1 -y
root@cp-k8s:~# kubeadm upgrade apply 1.30.1
kubelet 업그레이드
root@cp-k8s:~# kubelet
root@cp-k8s:~# apt-get install kubelet=1.30.1-1.1 -y
root@cp-k8s:~# systemctl restart kubelet.service
업그레이드 완료
root@cp-k8s:~# k get nodes
NAME STATUS ROLES AGE VERSION
cp-k8s Ready control-plane 45h v1.30.1
w1-k8s Ready <none> 45h v1.30.0
w2-k8s Ready <none> 45h v1.30.0
w3-k8s Ready <none> 45h v1.30.0
728x90
'DevOps > K8S' 카테고리의 다른 글
[K8S] 테인트와 톨러레이션 (0) | 2024.10.14 |
---|---|
[K8S] StatefulSet (1) | 2024.10.10 |
[K8S] Metric Server (0) | 2024.10.10 |
[K8S] MetalLB (1) | 2024.10.10 |
[K8S] 인그레스와 관련 리소스 (1) | 2024.10.08 |