Chapter 3 – Maintaining Kubernetes Clusters
You have two virtual machines: master-0
and worker-0
. Please complete the following mock scenarios.
Scenario 1
SSH to the master-0
node, check the current kubeadm
version, and upgrade to the latest kubeadm
version. Check the current kubectl
version, and upgrade to the latest kubectl
version.
Start by checking the current version with the following commands once we’re in the master node:
kubeadm version kubectl version
Check out the latest available versions:
apt update apt-cache madison kubeadm
Upgrade the kubeadm
using the following command:
apt-mark unhold kubeadm && \ apt-get update && apt-get install -y kubeadm=1.xx.x-00 && \ apt-mark hold kubeadm
Check if your cluster can be upgraded, and the available versions that your cluster can be upgraded to by using the following command:
...