Skip to content

Commit

Permalink
Changes after review
Browse files Browse the repository at this point in the history
  • Loading branch information
to-bar committed Jul 31, 2020
1 parent ecb4262 commit 69a5c38
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

- name: "k8s/install | Unhold packages: {{ packages | join( ', ' ) }}"
command: >-
apt-mark unhold {{ packages | join( ' ' ) }}
apt-mark unhold {{ packages | join( ' ' ) }}
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,11 @@
- name: k8s/master0 | Customize CoreDNS for latest Kubernetes ({{ version }})
include_tasks: upgrade-coredns.yml
when:
- last_upgrade
- upgrade_to_final_version

- name: Upgrade CNI plugin (deployment then local pod)
when:
- last_upgrade
- upgrade_to_final_version
block:
- name: k8s/master0 | Upgrade CNI plugin deployment
include_tasks: upgrade-cni-plugin-deployment.yml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
import_tasks: upgrade-cni-plugin-pod.yml
delegate_to: "{{ groups.kubernetes_master[0] }}"
when:
- last_upgrade
- upgrade_to_final_version

- name: k8s/masterN | Backup kubeadm-config.yml
include_tasks: backup-kubeadm-config.yml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
import_tasks: upgrade-cni-plugin-pod.yml
delegate_to: "{{ groups.kubernetes_master[0] }}"
when:
- last_upgrade
- upgrade_to_final_version

- name: k8s/node | Restart kubelet
systemd:
Expand Down
8 changes: 4 additions & 4 deletions core/src/epicli/data/common/ansible/playbooks/upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
- import_role:
name: upgrade
tasks_from: kubernetes
vars: { ver: "1.15.10", cni_ver: "0.7.5", last_upgrade: false }
vars: { ver: "1.15.10", cni_ver: "0.7.5", upgrade_to_final_version: false }

- hosts: kubernetes_master:kubernetes_node
serial: 1
Expand All @@ -50,7 +50,7 @@
- import_role:
name: upgrade
tasks_from: kubernetes
vars: { ver: "1.16.7", cni_ver: "0.7.5", last_upgrade: false }
vars: { ver: "1.16.7", cni_ver: "0.7.5", upgrade_to_final_version: false }

- hosts: kubernetes_master:kubernetes_node
serial: 1
Expand All @@ -60,7 +60,7 @@
- import_role:
name: upgrade
tasks_from: kubernetes
vars: { ver: "1.17.7", cni_ver: "0.8.6", cni_in_kubelet: true, last_upgrade: false }
vars: { ver: "1.17.7", cni_ver: "0.8.6", cni_in_kubelet: true, upgrade_to_final_version: false }

- hosts: kubernetes_master:kubernetes_node
serial: 1
Expand All @@ -70,7 +70,7 @@
- import_role:
name: upgrade
tasks_from: kubernetes
vars: { ver: "1.18.6", cni_ver: "0.8.6", last_upgrade: true }
vars: { ver: "1.18.6", cni_ver: "0.8.6", upgrade_to_final_version: true }

- hosts: elasticsearch
become: true
Expand Down

0 comments on commit 69a5c38

Please sign in to comment.