Skip to content
Snippets Groups Projects
Unverified Commit 7d7739e0 authored by Etienne Champetier's avatar Etienne Champetier Committed by GitHub
Browse files

Calico: fix node ip subnet detection (#7065)

We are currently setting the IP variable to hostIP,
Before https://github.com/projectcalico/node/pull/593

 (not yet released)
Calico interpret that as hostIP/32
Using 'can-reach' we get the future behavior
This fixes vxlan and IPIP CrossSubnet modes

Signed-off-by: default avatarEtienne Champetier <champetier.etienne@gmail.com>
parent 34708107
No related branches found
No related tags found
No related merge requests found
......@@ -230,10 +230,14 @@ spec:
- name: IP
value: "autodetect"
{% else %}
- name: IP
- name: NODEIP
valueFrom:
fieldRef:
fieldPath: status.hostIP
- name: IP_AUTODETECTION_METHOD
value: "can-reach=$(NODEIP)"
- name: IP
value: "autodetect"
{% endif %}
{% if calico_use_default_route_src_ipaddr|default(false) %}
- name: FELIX_DEVICEROUTESOURCEADDRESS
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment