Shanmuga Raj:
In the upgrade lab, I ran the following:
root@controlplane:~# apt-get upgrade -y kubectl=1.19.16-00 --allow-change-held-packages
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
<http://containerd.io|containerd.io> docker-ce docker-ce-cli kubelet
The following held packages will be changed:
kubectl
The following packages will be upgraded:
kubeadm kubectl
2 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
Need to get 16.9 MB of archives.
After this operation, 6095 kB of additional disk space will be used.
Get:1 <https://packages.cloud.google.com/apt> kubernetes-xenial/main amd64 kubectl amd64 1.19.16-00 [8352 kB]
Get:2 <https://packages.cloud.google.com/apt> kubernetes-xenial/main amd64 kubeadm amd64 1.23.4-00 [8583 kB]
Fetched 16.9 MB in 1s (21.1 MB/s)
debconf: delaying package configuration, since apt-utils is not installed
(Reading database ... 15148 files and directories currently installed.)
Preparing to unpack .../kubectl_1.19.16-00_amd64.deb ...
Unpacking kubectl (1.19.16-00) over (1.19.0-00) ...
Preparing to unpack .../kubeadm_1.23.4-00_amd64.deb ...
Unpacking kubeadm (1.23.4-00) over (1.19.16-00) ...
Setting up kubectl (1.19.16-00) ...
Setting up kubeadm (1.23.4-00) ...
now my cluster is running 1.19.6 on both master.worker, but the lab expects me to be on 1.20.0
running kubeadm upgrade plan
is thorwing this error now,
root@controlplane:~# kubeadm upgrade plan
[upgrade/config] Making sure the configuration is correct:
[upgrade/config] Reading configuration from the cluster...
[upgrade/config] FYI: You can look at this config file with 'kubectl -n kube-system get cm kubeadm-config -o yaml'
[upgrade/config] FATAL: this version of kubeadm only supports deploying clusters with the control plane version >= 1.22.0. Current version: v1.19.16
To see the stack trace of this error execute with --v=5 or higher