Browse Source
optional calico_ip_auto_method variable with IP_AUTODETECTION_METHOD
can be set to one of
first-found
can-reach
interface
pull/2521/head
Anton Fayzrahmanov
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
0 deletions
-
roles/network_plugin/calico/templates/calico-node.yml.j2
|
@ -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: |
|
|