macOS ◆ xterm-256color ◆ zsh 351 views

Using a KIND cluster, using kubeadm upgrade plan & apply to upgrade the Kubernetes components (scheduler, controller manager, API server, etcd).

Commands: docker exec -it kind-control-plane bash

kubectl version –short

kubeadm upgrade plan

apt update && apt install gpg

mkdir -p /etc/apt/keyrings

curl -fsSL https://dl.k8s.io/apt/doc/apt-key.gpg | gpg –dearmor -o /etc/apt/keyrings/kubernetes-archive-keyring.gpg

echo “deb [signed-by=/etc/apt/keyrings/kubernetes-archive-keyring.gpg] https://apt.kubernetes.io/ kubernetes-xenial main” | tee /etc/apt/sources.list.d/kubernetes.list

apt update

apt install kubeadm=1.26.7-00

kubeadm upgrade apply v1.26.7

kubeadm version

kubeadm upgrade plan