From effd4dd9504922d1da4ea84b252e7ef7d9c97ae7 Mon Sep 17 00:00:00 2001 From: Devin Buhl Date: Fri, 4 Nov 2022 09:38:02 -0400 Subject: [PATCH] fix: add calico configuration to hopefully select the right NIC on basic setups --- .../ansible/playbooks/templates/calico-installation.yaml.j2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/provision/ansible/playbooks/templates/calico-installation.yaml.j2 b/provision/ansible/playbooks/templates/calico-installation.yaml.j2 index 38ef26d71d8..e5263880edc 100644 --- a/provision/ansible/playbooks/templates/calico-installation.yaml.j2 +++ b/provision/ansible/playbooks/templates/calico-installation.yaml.j2 @@ -5,6 +5,10 @@ metadata: name: default spec: calicoNetwork: + # https://projectcalico.docs.tigera.io/networking/ip-autodetection + nodeAddressAutodetectionV4: + cidrs: + - "{{ (ansible_default_ipv4.network + '/' + ansible_default_ipv4.netmask) | ipaddr('network/prefix') }}" # Note: The ipPools section cannot be modified post-install. ipPools: - blockSize: 26