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: Etienne Champetier <champetier.etienne@gmail.com>
This commit is contained in:
parent
3470810709
commit
7d7739e031
1 changed files with 5 additions and 1 deletions
|
@ -230,10 +230,14 @@ spec:
|
||||||
- name: IP
|
- name: IP
|
||||||
value: "autodetect"
|
value: "autodetect"
|
||||||
{% else %}
|
{% else %}
|
||||||
- name: IP
|
- name: NODEIP
|
||||||
valueFrom:
|
valueFrom:
|
||||||
fieldRef:
|
fieldRef:
|
||||||
fieldPath: status.hostIP
|
fieldPath: status.hostIP
|
||||||
|
- name: IP_AUTODETECTION_METHOD
|
||||||
|
value: "can-reach=$(NODEIP)"
|
||||||
|
- name: IP
|
||||||
|
value: "autodetect"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if calico_use_default_route_src_ipaddr|default(false) %}
|
{% if calico_use_default_route_src_ipaddr|default(false) %}
|
||||||
- name: FELIX_DEVICEROUTESOURCEADDRESS
|
- name: FELIX_DEVICEROUTESOURCEADDRESS
|
||||||
|
|
Loading…
Reference in a new issue