✍ OS 버전 확인 명령
$ sudo cat /etc/os-release
✍ 업그레이드 할 수 있는 kubeadm 버전 리스트 출력
$ sudo yum list --showduplicates kubeadm --disableexcludes=kubernetes
(참고 URL : https://kubernetes.io/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade/)
$ ssh <master node>
$ sudo yum install -y kubeadm-<Upgrade할 버전> --disableexcludes=kubernetes
$ kubeadm version
$ sudo kubeadm upgrade plan <Upgrade할 버전>
$ sudo kubeadm upgrade apply <Upgrade할 버전>
$ kubectl drain <master 노드 이름> --ignore-daemonsets
$ sudo yum install -y kubelet-<Upgrade할 버전> kubectl-<Upgrade할 버전> --disableexcludes=kubernetes
$ sudo systemctl daemon-reload
$ sudo systemctl restart kubelet
$ kubectl uncordon <master node 이름>
$ ssh <Upgrade할 worker node>
$ sudo yum install -y kubeadm-<Upgrade할 버전> --disableexcludes=kubernetes
$ sudo kubeadm upgrade node
$ kubectl drain <worker node> --ignore-daemonsets
$ sudo yum install -y kubelet-<Upgrade할 버전> kubectl-<Upgrade할 버전> --disableexcludes=kubernetes
$ sudo systemctl daemon-reload
$ sudo systemctl restart kubelet
$ kubectl uncordon <node>