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