Back to Course

Certified Kubernetes Administrator (CKA) Course

0% Complete
0/0 Steps
  1. INTRODUCTION

    CKA Introduction
  2. CKA Exam details
  3. CKA Exam syllabus
  4. CKA Exam Registration
  5. CLUSTER ARCHITECTURE, INSTALLATION & CONFIGURATION
    Cluster Setup
    9 Topics
  6. Kubectl Aliases & Shortnames
  7. Cluster Configurations
    7 Topics
  8. Perform Cluster Version upgrade Using Kubeadm
    2 Topics
  9. etcd Backup and Restore
    1 Topic
  10. WORKLOADS
    Pods
    5 Topics
  11. Static Pods
    3 Topics
  12. Command and Arguments
    2 Topics
  13. Init Containers
    3 Topics
  14. ReplicaSets
    2 Topics
  15. Deployments
    10 Topics
  16. Jobs & Cronjobs
    5 Topics
  17. DaemonSets
    3 Topics
  18. SCHEDULING
    Labels and Selectors
    2 Topics
  19. Taints and Tolerations
    4 Topics
  20. Node Name & Node Selector
    3 Topics
  21. Node Affinity
    2 Topics
  22. IDENTITY & ACCESS MANAGEMENT
    Namespaces
    2 Topics
  23. Service Accounts
    3 Topics
  24. RBAC
    4 Topics
  25. Roles & ClusterRoles
    6 Topics
  26. Application Configuration and Security
    Environment Variables
    1 Topic
  27. ConfigMaps
    3 Topics
  28. Secrets
    2 Topics
  29. Resource Requests & Limits
    4 Topics
  30. Certificates
    2 Topics
  31. STORAGE
    Volumes
    1 Topic
  32. Persistent Volumes
    1 Topic
  33. Persistent Volume Claims
    2 Topics
  34. Storage Class
    2 Topics
  35. SERVICES, LOAD BALANCING & NETWORKING
    Services
    5 Topics
  36. Ingress
    1 Topic
  37. Network Policies
    2 Topics
  38. Other topics (need to add in relevant section)
    JSONpath
  39. Security Context
  40. Kubernetes Architecture
    1 Topic
  41. Practice Tests
    Challenges - Set 1
    10 Topics
  42. Challenges - Set 2
    10 Topics
  43. Challenges - Set 3
    10 Topics
  44. Challenges - Set 4
    10 Topics
Lesson Progress
0% Complete

Now that we have upgraded the control plane, we have to upgrade kubeadm and kubelet on the worker nodes.

Upgrade Kubeadm on Worker Nodes

Important Note: Run all the the kubectl commands from the control plane node. Other commands have to be run the worker nodes.

Step 1: Install required kubeadm version.

Update the package repo.

sudo apt-get update -y

Unhold kubeadm package.

sudo apt-mark unhold kubeadm

Install the specific Kubeadm version. Replce 1.29.2-1.1 with the respective version.

sudo apt-get install -y kubeadm=1.29.2-1.1

Step 2: Upgrade the node using the following command.

sudo kubeadm upgrade node

Upgrade Kubelet on Worker Nodes

Follow the steps given below to upgrade kubelet on the worker nodes

Step 1: Get the worker node name.

k get nodes

Step 2: Drain the worker plane node using the node name and make it unschedulable.

Important Note: Here, node01 is the node name. If you have a different name for your worker node, rename it accordingly..

k drain node01 --ignore-daemonsets --delete-emptydir-data

The --delete-emptydir-data flag instructs the drain process to remove any data stored in emptyDir volumes when draining a node..

Note: During CKA exam, you dont have to use the --delete-emptydir-data flag.

Step 3: Unhold Kubelet.

sudo apt-mark unhold kubelet

Step 4: Update and install Kubelet. Replace 1.29.2-1.1 with the required version.

sudo apt-get update -y
sudo apt-get install kubelet=1.29.2-1.1

Step 5: Restart kubelet

sudo systemctl daemon-reload
sudo systemctl restart kubelet

Step 6: Uncordon the node so that node01 becomes schedulable.

k uncordon node01

Step 6: Verify the upgrade using the following command

k get nodes -o wide

You should see the updated version as shown below.