본문 바로가기
MLOps/Doker & Kubernetes

Udemy CKA 강의 정리 128: Solution - Cluster Upgrade

by 공부하는 무니 2023. 1. 14.
반응형

Q1. This lab tests your skills on upgrading a kubernetes cluster. We have a production cluster with applications running on it. Let us explore the setup first.

답: v1.25.0

Q2. How many nodes are part of this cluster?

답: 2

Q3. How many nodes can host workloads in this cluster?

답: 2

Q4. How many applications are hosted on the cluster?

답: 1

Q5. What nodes are the pods hosted on?

답: controlplane, node01

Q6. You are tasked to upgrade the cluster. Users accessing the applications must not be impacted, and you cannot provision new VMs. What strategy would you use to upgrade the cluster?

답: Upgrade one node at a time while moving the workloads to the other.

Q7. What is the latest stable version of Kubernetes as of today?

답: 1.26.0

Q8. What is the latest version available for an upgrade with the current version of the kubeadm tool installed?

답: 1.25.5

Q9. We will be upgrading the controlplane node first. Drain the controlplane node of workloads and mark it UnSchedulable

Q10. Upgrade the controlplane components to exact version v1.26.0

문서 참고: https://v1-25.docs.kubernetes.io/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade/

 

Upgrading kubeadm clusters

This page explains how to upgrade a Kubernetes cluster created with kubeadm from version 1.25.x to version 1.26.x, and from version 1.26.x to 1.26.y (where y > x). Skipping MINOR versions when upgrading is unsupported. For more details, please visit Versio

kubernetes.io

Q11. Mark the controlplane node as "Schedulable" again

Q12. Next is the worker node. Drain the worker node of the workloads and mark it UnSchedulable

Q13. Upgrade the worker node to the exact version v1.26.0

(다시해보기)

Q14. Remove the restriction and mark the worker node as schedulable again.

반응형

댓글