From 0bc59322a21cde925ca46e1af6ef69598e5c9fcf Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sat, 13 Aug 2022 15:37:12 +0200 Subject: kubernetes/kubeadm: dust-off upgrade readme --- roles/kubernetes/kubeadm/upgrade | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/roles/kubernetes/kubeadm/upgrade b/roles/kubernetes/kubeadm/upgrade index 2cfa18cd..5328eefa 100644 --- a/roles/kubernetes/kubeadm/upgrade +++ b/roles/kubernetes/kubeadm/upgrade @@ -4,7 +4,7 @@ Cluster Upgrades: primary control-plane node: --------------------------- -VERSION=1.23.1 +VERSION=1.24.3 apt-get update @@ -29,11 +29,11 @@ kubectl uncordon $(hostname) secondary control-plane node: ----------------------------- -VERSION=1.23.1 +VERSION=1.24.3 apt-get update sed "s/^Pin: version .*$/Pin: version $VERSION-00/" -i /etc/apt/preferences.d/kubeadm.pref -apt-get install -y --allow-change-held-packages "kubeadm=$VERSION-00" +apt-get install -y "kubeadm=$VERSION-00" kubectl drain $(hostname) --ignore-daemonsets --delete-emptydir-data kubeadm upgrade node @@ -49,7 +49,7 @@ kubectl uncordon $(hostname) worker nodes: ------------- -VERSION=1.23.1 +VERSION=1.24.3 apt-get update sed "s/^Pin: version .*$/Pin: version $VERSION-00/" -i /etc/apt/preferences.d/kubeadm.pref -- cgit v1.2.3