Skip to content

Commit

Permalink
Handle calico-rr nodes as workers so they get upgraded too (kubernete…
Browse files Browse the repository at this point in the history
…s-sigs#6447)

* Handle calico-rr nodes as workers so they get upgraded too

* calico-rr nodes run 'calico and external cloud provider' too
  • Loading branch information
gaima8 authored and LuckySB committed Jan 16, 2021
1 parent ca81ca3 commit 41ca35e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions upgrade-cluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@
- { role: upgrade/post-upgrade, tags: post-upgrade }
environment: "{{ proxy_env }}"

- name: Upgrade calico and external cloud provider on all masters and nodes
hosts: kube-master:kube-node
- name: Upgrade calico and external cloud provider on all masters, calico-rrs, and nodes
hosts: kube-master:calico-rr:kube-node
gather_facts: False
any_errors_fatal: "{{ any_errors_fatal | default(true) }}"
serial: "{{ serial | default('20%') }}"
Expand All @@ -124,7 +124,7 @@
- { role: kubernetes-apps/policy_controller, tags: policy-controller }

- name: Finally handle worker upgrades, based on given batch size
hosts: kube-node:!kube-master
hosts: kube-node:calico-rr:!kube-master
gather_facts: False
any_errors_fatal: "{{ any_errors_fatal | default(true) }}"
serial: "{{ serial | default('20%') }}"
Expand Down

0 comments on commit 41ca35e

Please sign in to comment.