Skip to content
Snippets Groups Projects
Unverified Commit f7dc73b8 authored by Andreas Krüger's avatar Andreas Krüger Committed by GitHub
Browse files

Merge pull request #2521 from f84anton/patch-1

optional calico_ip_auto_method variable with IP_AUTODETECTION_METHOD
parents 8eac37fa a75598b3
Branches
Tags
No related merge requests found
......@@ -45,3 +45,9 @@ rbac_resources:
- sa
- clusterrole
- clusterrolebinding
# If you want to use non default IP_AUTODETECTION_METHOD for calico node set this option to one of:
# * can-reach=DESTINATION
# * interface=INTERFACE-REGEX
# see https://docs.projectcalico.org/v3.0/reference/node/configuration#ip-autodetection-methods
#calico_ip_auto_method: "interface=eth.*"
......@@ -108,10 +108,15 @@ spec:
configMapKeyRef:
name: calico-config
key: etcd_cert
{% if calico_ip_auto_method is defined %}
- name: IP_AUTODETECTION_METHOD
value: "{{ calico_ip_auto_method }}"
{% else %}
- name: IP
valueFrom:
fieldRef:
fieldPath: status.hostIP
{% endif %}
- name: NODENAME
valueFrom:
fieldRef:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment