|
|
@ -52,9 +52,9 @@ spec: |
|
|
|
# Name of the CNI config file to create. |
|
|
|
- name: CNI_CONF_NAME |
|
|
|
value: "10-calico.conflist" |
|
|
|
# CNI binaries are already on the host |
|
|
|
# Install CNI binaries |
|
|
|
- name: UPDATE_CNI_BINARIES |
|
|
|
value: "false" |
|
|
|
value: "true" |
|
|
|
# The CNI network config to install on each node. |
|
|
|
- name: CNI_NETWORK_CONFIG_FILE |
|
|
|
value: "/host/etc/cni/net.d/calico.conflist.template" |
|
|
@ -64,6 +64,8 @@ spec: |
|
|
|
volumeMounts: |
|
|
|
- mountPath: /host/etc/cni/net.d |
|
|
|
name: cni-net-dir |
|
|
|
- mountPath: /host/opt/cni/bin |
|
|
|
name: cni-bin-dir |
|
|
|
{% endif %} |
|
|
|
containers: |
|
|
|
{% if calico_version is version('v3.3.0', '>=') and calico_version is version('v3.4.0', '<') %} |
|
|
@ -74,9 +76,9 @@ spec: |
|
|
|
# Name of the CNI config file to create. |
|
|
|
- name: CNI_CONF_NAME |
|
|
|
value: "10-calico.conflist" |
|
|
|
# CNI binaries are already on the host |
|
|
|
# Install CNI binaries |
|
|
|
- name: UPDATE_CNI_BINARIES |
|
|
|
value: "false" |
|
|
|
value: "true" |
|
|
|
# The CNI network config to install on each node. |
|
|
|
- name: CNI_NETWORK_CONFIG_FILE |
|
|
|
value: "/host/etc/cni/net.d/calico.conflist.template" |
|
|
@ -86,6 +88,8 @@ spec: |
|
|
|
volumeMounts: |
|
|
|
- mountPath: /host/etc/cni/net.d |
|
|
|
name: cni-net-dir |
|
|
|
- mountPath: /host/opt/cni/bin |
|
|
|
name: cni-bin-dir |
|
|
|
{% endif %} |
|
|
|
# Runs calico/node container on each Kubernetes node. This |
|
|
|
# container programs network policy and routes on each |
|
|
@ -260,6 +264,9 @@ spec: |
|
|
|
- name: cni-net-dir |
|
|
|
hostPath: |
|
|
|
path: /etc/cni/net.d |
|
|
|
- name: cni-bin-dir |
|
|
|
hostPath: |
|
|
|
path: /opt/cni/bin |
|
|
|
# Mount in the etcd TLS secrets. |
|
|
|
- name: etcd-certs |
|
|
|
hostPath: |
|
|
|