From 1ef1afa9ae10a9a5a3bb59c4e96bf96b7793a3e0 Mon Sep 17 00:00:00 2001 From: alecsandru Date: Sat, 4 May 2024 18:42:18 +0000 Subject: [PATCH] Update 'k8s/upgrde_26_27.yml' --- k8s/upgrde_26_27.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/k8s/upgrde_26_27.yml b/k8s/upgrde_26_27.yml index b7c5ff2..9f09dfa 100644 --- a/k8s/upgrde_26_27.yml +++ b/k8s/upgrde_26_27.yml @@ -36,4 +36,12 @@ - "kubeadm" - name: Upgrading packages apt: - upgrade: yes \ No newline at end of file + upgrade: yes + - name: Upgrade plan + shell: "kubeadm upgrade plan >> /etc/kubernetes/upgrade_plan_{{ K8S_SOURCE_VERSION}}_{{ K8S_TARGET_VERSION}}" + args: + creates: /etc/kubernetes/upgrade_plan_{{ K8S_SOURCE_VERSION}}_{{ K8S_TARGET_VERSION}} + - name: Apply upgrade plan + shell: "sudo kubeadm upgrade apply v1.27.13 >> /etc/kubernetes/upgrade_ops_{{ K8S_SOURCE_VERSION}}_{{ K8S_TARGET_VERSION}}" + args: + creates: /etc/kubernetes/upgrade_ops_{{ K8S_SOURCE_VERSION}}_{{ K8S_TARGET_VERSION}} \ No newline at end of file