Initialising Kubernetes...
done
controlplane $ k get ndoes
error: the server doesn't have a resource type "ndoes"
controlplane $ k get nodes
NAME STATUS ROLES AGE VERSION
controlplane Ready control-plane 3d7h v1.30.0
node01 Ready <none> 3d7h v1.30.0
controlplane $ sudo apt update
Hit:1 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:2 https://prod-cdn.packages.k8s.io/repositories/isv:/kubernetes:/core:/
stable:/v1.28/deb InRelease
Hit:3 https://prod-cdn.packages.k8s.io/repositories/isv:/kubernetes:/core:/
stable:/v1.29/deb InRelease
Hit:4 https://prod-cdn.packages.k8s.io/repositories/isv:/kubernetes:/core:/
stable:/v1.30/deb InRelease
Hit:5 http://archive.ubuntu.com/ubuntu focal InRelease
Hit:6 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:7 http://archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:8 http://ppa.launchpad.net/rmescandon/yq/ubuntu focal InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
174 packages can be upgraded. Run 'apt list --upgradable' to see them.
controlplane $ kubectl drain node01 --ignore-daemonsets
node/node01 cordoned
Warning: ignoring DaemonSet-managed Pods: kube-system/canal-x28k7,
kube-system/kube-proxy-xcj62
evicting pod kube-system/coredns-5c69dbb7bd-wnfxj
evicting pod kube-system/coredns-5c69dbb7bd-2hcjc
pod/coredns-5c69dbb7bd-2hcjc evicted
pod/coredns-5c69dbb7bd-wnfxj evicted
node/node01 drained
controlplane $ k drain controlplane --ignore-daemonsets
node/controlplane cordoned
Warning: ignoring DaemonSet-managed Pods: kube-system/canal-ht7kk,
kube-system/kube-proxy-gbgj8
evicting pod local-path-storage/local-path-provisioner-75655fcf79-mrts5
evicting pod kube-system/calico-kube-controllers-75bdb5b75d-znr65
evicting pod kube-system/coredns-5c69dbb7bd-bfs7q
evicting pod kube-system/coredns-5c69dbb7bd-ntqlb
pod/calico-kube-controllers-75bdb5b75d-znr65 evicted
pod/coredns-5c69dbb7bd-ntqlb evicted
pod/coredns-5c69dbb7bd-bfs7q evicted
pod/local-path-provisioner-75655fcf79-mrts5 evicted
node/controlplane drained
controlplane $ sudo apt-cache madison kubeadm
kubeadm | 1.30.1-1.1 | https://pkgs.k8s.io/core:/stable:/v1.30/deb Packages
kubeadm | 1.30.0-1.1 | https://pkgs.k8s.io/core:/stable:/v1.30/deb Packages
kubeadm | 1.29.5-1.1 | https://pkgs.k8s.io/core:/stable:/v1.29/deb Packages
kubeadm | 1.29.4-2.1 | https://pkgs.k8s.io/core:/stable:/v1.29/deb Packages
kubeadm | 1.29.3-1.1 | https://pkgs.k8s.io/core:/stable:/v1.29/deb Packages
kubeadm | 1.29.2-1.1 | https://pkgs.k8s.io/core:/stable:/v1.29/deb Packages
kubeadm | 1.29.1-1.1 | https://pkgs.k8s.io/core:/stable:/v1.29/deb Packages
kubeadm | 1.29.0-1.1 | https://pkgs.k8s.io/core:/stable:/v1.29/deb Packages
kubeadm | 1.28.10-1.1 | https://pkgs.k8s.io/core:/stable:/v1.28/deb Packages
kubeadm | 1.28.9-2.1 | https://pkgs.k8s.io/core:/stable:/v1.28/deb Packages
kubeadm | 1.28.8-1.1 | https://pkgs.k8s.io/core:/stable:/v1.28/deb Packages
kubeadm | 1.28.7-1.1 | https://pkgs.k8s.io/core:/stable:/v1.28/deb Packages
kubeadm | 1.28.6-1.1 | https://pkgs.k8s.io/core:/stable:/v1.28/deb Packages
kubeadm | 1.28.5-1.1 | https://pkgs.k8s.io/core:/stable:/v1.28/deb Packages
kubeadm | 1.28.4-1.1 | https://pkgs.k8s.io/core:/stable:/v1.28/deb Packages
kubeadm | 1.28.3-1.1 | https://pkgs.k8s.io/core:/stable:/v1.28/deb Packages
kubeadm | 1.28.2-1.1 | https://pkgs.k8s.io/core:/stable:/v1.28/deb Packages
kubeadm | 1.28.1-1.1 | https://pkgs.k8s.io/core:/stable:/v1.28/deb Packages
kubeadm | 1.28.0-1.1 | https://pkgs.k8s.io/core:/stable:/v1.28/deb Packages
controlplane $ kubeadm version
kubeadm version: &version.Info{Major:"1", Minor:"30", GitVersion:"v1.30.0",
GitCommit:"7c48c2bd72b9bf5c44d21d7338cc7bea77d0ad2a", GitTreeState:"clean",
BuildDate:"2024-04-17T17:34:08Z", GoVersion:"go1.22.2", Compiler:"gc",
Platform:"linux/amd64"}
controlplane $ k get nodes
NAME STATUS ROLES AGE VERSION
controlplane Ready,SchedulingDisabled control-plane 3d8h v1.30.0
node01 Ready,SchedulingDisabled <none> 3d7h v1.30.0
controlplane $ sudo kubeadm upgrade plan
[upgrade/config] Making sure the configuration is correct:
[preflight] Running pre-flight checks.
[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] Running cluster health checks
[upgrade/health] FATAL: [preflight] Some fatal errors occurred:
[ERROR CreateJob]: Job "upgrade-health-check-7w8gc" in the namespace "kube-
system" did not complete in 15s: client rate limiter Wait returned an error: rate:
Wait(n=1) would exceed context deadline
[preflight] If you know what you are doing, you can make a check non-fatal with `--
ignore-preflight-errors=...`
To see the stack trace of this error execute with --v=5 or higher
controlplane $ sudo kubeadm upgrade apply v1.30.1
[upgrade/config] Making sure the configuration is correct:
[preflight] Running pre-flight checks.
[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] Running cluster health checks
[upgrade/health] FATAL: [preflight] Some fatal errors occurred:
[ERROR CreateJob]: Job "upgrade-health-check-69pjj" in the namespace "kube-
system" did not complete in 15s: client rate limiter Wait returned an error: rate:
Wait(n=1) would exceed context deadline
[preflight] If you know what you are doing, you can make a check non-fatal with `--
ignore-preflight-errors=...`
To see the stack trace of this error execute with --v=5 or higher
controlplane $ kubeadm version
kubeadm version: &version.Info{Major:"1", Minor:"30", GitVersion:"v1.30.0",
GitCommit:"7c48c2bd72b9bf5c44d21d7338cc7bea77d0ad2a", GitTreeState:"clean",
BuildDate:"2024-04-17T17:34:08Z", GoVersion:"go1.22.2", Compiler:"gc",
Platform:"linux/amd64"}
controlplane $ sudo kubeadm upgrade apply v1.30.1
[upgrade/config] Making sure the configuration is correct:
[preflight] Running pre-flight checks.
[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] Running cluster health checks
[upgrade/health] FATAL: [preflight] Some fatal errors occurred:
[ERROR CreateJob]: Job "upgrade-health-check-xhmf8" in the namespace "kube-
system" did not complete in 15s: client rate limiter Wait returned an error: rate:
Wait(n=1) would exceed context deadline
[preflight] If you know what you are doing, you can make a check non-fatal with `--
ignore-preflight-errors=...`
To see the stack trace of this error execute with --v=5 or higher
controlplane $ kubeadm version
kubeadm version: &version.Info{Major:"1", Minor:"30", GitVersion:"v1.30.0",
GitCommit:"7c48c2bd72b9bf5c44d21d7338cc7bea77d0ad2a", GitTreeState:"clean",
BuildDate:"2024-04-17T17:34:08Z", GoVersion:"go1.22.2", Compiler:"gc",
Platform:"linux/amd64"}
controlplane $ k get nodes
NAME STATUS ROLES AGE VERSION
controlplane Ready,SchedulingDisabled control-plane 3d8h v1.30.0
node01 Ready,SchedulingDisabled <none> 3d7h v1.30.0
controlplane $ apt install kubeadm
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
kubeadm
1 upgraded, 0 newly installed, 0 to remove and 173 not upgraded.
Need to get 10.4 MB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 https://prod-cdn.packages.k8s.io/repositories/isv:/kubernetes:/core:/
stable:/v1.30/deb kubeadm 1.30.1-1.1 [10.4 MB]
Fetched 10.4 MB in 0s (23.5 MB/s)
(Reading database ... 132625 files and directories currently installed.)
Preparing to unpack .../kubeadm_1.30.1-1.1_amd64.deb ...
Unpacking kubeadm (1.30.1-1.1) over (1.30.0-1.1) ...
Setting up kubeadm (1.30.1-1.1) ...
^C
controlplane $ apt install kubeadm=1.30.1-1.1
Reading package lists... Done
Building dependency tree
Reading state information... Done
kubeadm is already the newest version (1.30.1-1.1).
0 upgraded, 0 newly installed, 0 to remove and 173 not upgraded.
controlplane $ kubeadm version
kubeadm version: &version.Info{Major:"1", Minor:"30", GitVersion:"v1.30.1",
GitCommit:"6911225c3f747e1cd9d109c305436d08b668f086", GitTreeState:"clean",
BuildDate:"2024-05-14T10:49:05Z", GoVersion:"go1.22.2", Compiler:"gc",
Platform:"linux/amd64"}
controlplane $ apt install kubelet
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
kubelet
1 upgraded, 0 newly installed, 0 to remove and 172 not upgraded.
Need to get 18.1 MB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 https://prod-cdn.packages.k8s.io/repositories/isv:/kubernetes:/core:/
stable:/v1.30/deb kubelet 1.30.1-1.1 [18.1 MB]
Fetched 18.1 MB in 1s (35.0 MB/s)
(Reading database ... 132625 files and directories currently installed.)
Preparing to unpack .../kubelet_1.30.1-1.1_amd64.deb ...
Unpacking kubelet (1.30.1-1.1) over (1.30.0-1.1) ...
Setting up kubelet (1.30.1-1.1) ...
controlplane $ kubelet version
E0611 14:22:16.375075 12931 run.go:74] "command failed" err="unknown command
version"
controlplane $ systemctl restart kubelet
controlplane $ k get nodes
NAME STATUS ROLES AGE VERSION
controlplane NotReady,SchedulingDisabled control-plane 3d8h v1.30.1
node01 Ready,SchedulingDisabled <none> 3d7h v1.30.0
controlplane $ k uncordon controlplane
node/controlplane uncordoned
controlplane $ k uncordon node01
node/node01 uncordoned
controlplane $ k get nodes
NAME STATUS ROLES AGE VERSION
controlplane Ready control-plane 3d8h v1.30.1
node01 Ready <none> 3d7h v1.30.0
controlplane $