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 Feb 28, 2022
1 parent b554246 commit 0e48525
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions roles/network_plugin/calico/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,6 @@ calico_felix_log_severity_screen: Info

# Calico container settings
calico_allow_ip_forwarding: false

# Calico IPAM strictaffinity
calico_ipam_strictaffinity: false
11 changes: 11 additions & 0 deletions roles/network_plugin/calico/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -441,3 +441,14 @@
when:
- peer_with_router|default(false)
- inventory_hostname in groups['k8s_cluster']

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

0 comments on commit 0e48525

Please sign in to comment.