mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-05-18 06:47:46 -02:30
feat(calico): add configurable ipam strictaffinity (#8581)
Signed-off-by: Toni Tauro <toni.tauro@adfinis.com>
This commit is contained in:
@@ -127,3 +127,6 @@ calico_felix_log_severity_screen: Info
|
|||||||
|
|
||||||
# Calico container settings
|
# Calico container settings
|
||||||
calico_allow_ip_forwarding: false
|
calico_allow_ip_forwarding: false
|
||||||
|
|
||||||
|
# Calico IPAM strictaffinity
|
||||||
|
calico_ipam_strictaffinity: false
|
||||||
|
|||||||
@@ -441,3 +441,14 @@
|
|||||||
when:
|
when:
|
||||||
- peer_with_router|default(false)
|
- peer_with_router|default(false)
|
||||||
- inventory_hostname in groups['k8s_cluster']
|
- 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']
|
||||||
|
|||||||
Reference in New Issue
Block a user