nerdexam
Linux_Foundation

CKA · Question #36

Given an existing Kubernetes cluster running version 1.20.0, upgrade all of the Kubernetes control plane and node components on the master node only to version 1.20.1. Be sure to drain the master…

SOLUTION: [student@node-1] > ssh ek8s kubectl cordon k8s-master kubectl drain k8s-master --delete-local-data --ignore-daemonsets --force apt-get install kubeadm=1.20.1-00 kubelet=1.20.1-00 kubectl=1.20.1-00 --disableexcludes=kubernetes kubeadm upgrade apply 1.20.1…

Submitted by carlos_mx· May 4, 2026Cluster Architecture, Installation & Configuration

Question

Given an existing Kubernetes cluster running version 1.20.0, upgrade all of the Kubernetes control plane and node components on the master node only to version 1.20.1. Be sure to drain the master node before upgrading it and uncordon it after the upgrade. You can ssh to the master node using: [student@node-1] $ ssh mk8s-master-0 You can assume elevated privileges on the master node with the following command: [student@mk8s-master-0] $ sudo -i Do not upgrade the worker nodes, etcd, the container manager, the CNI plugin, the DNS service or any other addons.

Exhibits

CKA question #36 exhibit 1
CKA question #36 exhibit 2

Explanation

SOLUTION: [student@node-1] > ssh ek8s kubectl cordon k8s-master kubectl drain k8s-master --delete-local-data --ignore-daemonsets --force apt-get install kubeadm=1.20.1-00 kubelet=1.20.1-00 kubectl=1.20.1-00 --disableexcludes=kubernetes kubeadm upgrade apply 1.20.1 --etcd-upgrade=false systemctl daemon-reload systemctl restart kubelet kubectl uncordon k8s-master

Topics

#Kubernetes upgrade#Control plane upgrade#Node draining#kubeadm

Community Discussion

No community discussion yet for this question.

Full CKA Practice