mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-05-08 01:47:37 -02:30
Deviceroutesourceaddress (#6508)
* add FELIX_DEVICEROUTESOURCEADDRESS calico option * add calico_use_default_route_src_ipaddr option add calico_use_default_route_src_ipaddr option to use FELIX_DEVICEROUTESOURCEADDRESS calico option * Update k8s-net-calico.yml
This commit is contained in:
@@ -72,3 +72,7 @@
|
|||||||
# calico_ip_auto_method: "interface=eth.*"
|
# calico_ip_auto_method: "interface=eth.*"
|
||||||
# Choose the iptables insert mode for Calico: "Insert" or "Append".
|
# Choose the iptables insert mode for Calico: "Insert" or "Append".
|
||||||
# calico_felix_chaininsertmode: Insert
|
# calico_felix_chaininsertmode: Insert
|
||||||
|
|
||||||
|
# If you want use the default route interface when you use multiple interface with dynamique route (iproute2)
|
||||||
|
# see https://docs.projectcalico.org/reference/node/configuration : FELIX_DEVICEROUTESOURCEADDRESS
|
||||||
|
# calico_use_default_route_src_ipaddr: false
|
||||||
|
|||||||
@@ -258,6 +258,12 @@ spec:
|
|||||||
valueFrom:
|
valueFrom:
|
||||||
fieldRef:
|
fieldRef:
|
||||||
fieldPath: status.hostIP
|
fieldPath: status.hostIP
|
||||||
|
{% endif %}
|
||||||
|
{% if calico_version is version('v3.9.0', '>=') and calico_use_default_route_src_ipaddr|default(false) %}
|
||||||
|
- name: FELIX_DEVICEROUTESOURCEADDRESS
|
||||||
|
valueFrom:
|
||||||
|
fieldRef:
|
||||||
|
fieldPath: status.hostIP
|
||||||
{% endif %}
|
{% endif %}
|
||||||
- name: NODENAME
|
- name: NODENAME
|
||||||
valueFrom:
|
valueFrom:
|
||||||
|
|||||||
Reference in New Issue
Block a user