Browse Source

feat(calico): add configurable ipam strictaffinity (#8581)

Signed-off-by: Toni Tauro <toni.tauro@adfinis.com>
pull/8558/head
Toni Tauro 2 years ago
committed by GitHub
parent
commit
5a49ac52f9
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 0 deletions
  1. 3
      roles/network_plugin/calico/defaults/main.yml
  2. 11
      roles/network_plugin/calico/tasks/install.yml

3
roles/network_plugin/calico/defaults/main.yml

@ -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
roles/network_plugin/calico/tasks/install.yml

@ -441,3 +441,14 @@
when:
- peer_with_router|default(false)
- inventory_hostname in groups['k8s_cluster']
- name: Calico | Configure ipam strictaffinity
command:
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 defined
- inventory_hostname in groups['k8s_cluster']
Loading…
Cancel
Save