mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-02 01:08:54 -03:30
Merge pull request #2521 from f84anton/patch-1
optional calico_ip_auto_method variable with IP_AUTODETECTION_METHOD
This commit is contained in:
@@ -45,3 +45,9 @@ rbac_resources:
|
|||||||
- sa
|
- sa
|
||||||
- clusterrole
|
- clusterrole
|
||||||
- clusterrolebinding
|
- 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:
|
configMapKeyRef:
|
||||||
name: calico-config
|
name: calico-config
|
||||||
key: etcd_cert
|
key: etcd_cert
|
||||||
|
{% if calico_ip_auto_method is defined %}
|
||||||
|
- name: IP_AUTODETECTION_METHOD
|
||||||
|
value: "{{ calico_ip_auto_method }}"
|
||||||
|
{% else %}
|
||||||
- name: IP
|
- name: IP
|
||||||
valueFrom:
|
valueFrom:
|
||||||
fieldRef:
|
fieldRef:
|
||||||
fieldPath: status.hostIP
|
fieldPath: status.hostIP
|
||||||
|
{% endif %}
|
||||||
- name: NODENAME
|
- name: NODENAME
|
||||||
valueFrom:
|
valueFrom:
|
||||||
fieldRef:
|
fieldRef:
|
||||||
|
|||||||
Reference in New Issue
Block a user