Skip to content

Commit

Permalink
feat(calico): add configurable ipam strictaffinity
Browse files Browse the repository at this point in the history
Signed-off-by: Toni Tauro <[email protected]>
  • Loading branch information
eyenx committed Mar 6, 2022
1 parent 0e48525 commit 7b4c135
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions roles/network_plugin/calico/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -442,13 +442,13 @@
- peer_with_router|default(false)
- inventory_hostname in groups['k8s_cluster']

- name: Calico | Configure ipam strictaffinity to true
- name: Calico | Configure ipam strictaffinity
command:
cmd: "{{ bin_dir }}/calicoctl.sh ipam configure --strictaffinity=true"
cmd: "{{ bin_dir }}/calicoctl.sh ipam configure --strictaffinity={{ calico_ipam_strictaffinity }}"
register: output
retries: 4
until: output.rc == 0
delay: "{{ retry_stagger | random + 3 }}"
when:
- calico_ipam_strictaffinity is true
- calico_ipam_strictaffinity is defined
- inventory_hostname in groups['k8s_cluster']

0 comments on commit 7b4c135

Please sign in to comment.