Mayur Sharma:
In lightning lab, I got all correct except the cluster upgrade… Not able to upgrade the worker node, as kubeadm version 1.19.4 is not found on worker node.
here are the steps I performed,
When I run following to check available version, I see the latest version available is 1.19.4-00
apt update
apt-cache madison kubeadm
- Upgraded master’s kubeadm to 1.19.
apt-mark unhold kubeadm && \
apt-get update && apt-get install -y kubeadm=1.19.4-00 && \
apt-mark hold kubeadm
- Here I got the next available version is 1.19.11
sudo kubeadm upgrade plan
- I stick to 1.19.4-00 and upgraded the master node
kubeadm upgrade apply v1.19.4-00
- drain the master node
sudo kubeadm upgrade node
kubectl drain controlplane --ignore-daemonsets
- Upgraded the kubectl and kubelet to 1.19.4 version on master node
apt-mark unhold kubelet kubectl && \
apt-get update && apt-get install -y kubelet=1.19.4-00 kubectl=1.19.4-00 && \
apt-mark hold kubelet kubectl
- Restarted kubelet
sudo systemctl daemon-reload
sudo systemctl restart kubelet
- Now, the turn is of worker node. Here the kubeadm version is not found.
apt-mark unhold kubeadm && \
apt-get update && apt-get install -y kubeadm=1.19.4-00 && \
apt-mark hold kubeadm
Output of above command on worker node:
Hit:9 <http://security.ubuntu.com/ubuntu> bionic-security InRelease
Hit:10 <http://us.archive.ubuntu.com/ubuntu> bionic-updates InRelease
Hit:11 <http://us.archive.ubuntu.com/ubuntu> bionic-backports InRelease
Err:3 <https://dl.yarnpkg.com/debian> stable InRelease
The following signatures were invalid: EXPKEYSIG 23E7166788B63E1E Yarn Packaging <[email protected]>
Get:6 <https://packages.cloud.google.com/apt> kubernetes-xenial InRelease [9,383 B]
Err:6 <https://packages.cloud.google.com/apt> kubernetes-xenial InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY FEEA9169307EA071 NO_PUBKEY 8B57C5C2836F4BEB
Fetched 17.1 kB in 1s (15.1 kB/s)
Reading package lists... Done
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: <https://dl.yarnpkg.com/debian> stable InRelease: The following signatures were invalid: EXPKEYSIG 23E7166788B63E1E Yarn Packaging <[email protected]>
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: <https://packages.cloud.google.com/apt> kubernetes-xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY FEEA9169307EA071 NO_PUBKEY 8B57C5C2836F4BEB
W: Failed to fetch <http://apt.kubernetes.io/dists/kubernetes-xenial/InRelease> The following signatures couldn't be verified because the public key is not available: NO_PUBKEY FEEA9169307EA071 NO_PUBKEY 8B57C5C2836F4BEB
W: Failed to fetch <https://dl.yarnpkg.com/debian/dists/stable/InRelease> The following signatures were invalid: EXPKEYSIG 23E7166788B63E1E Yarn Packaging <[email protected]>
W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Version '1.19.4-00' for 'kubeadm' was not found