|
@ -19,10 +19,6 @@ spec: |
|
|
spec: |
|
|
spec: |
|
|
hostNetwork: true |
|
|
hostNetwork: true |
|
|
volumes: |
|
|
volumes: |
|
|
# Used by flannel-server-helper |
|
|
|
|
|
- name: "networkconfig" |
|
|
|
|
|
hostPath: |
|
|
|
|
|
path: "/etc/flannel-network.json" |
|
|
|
|
|
# Used by calico/node. |
|
|
# Used by calico/node. |
|
|
- name: lib-modules |
|
|
- name: lib-modules |
|
|
hostPath: |
|
|
hostPath: |
|
@ -45,29 +41,6 @@ spec: |
|
|
hostPath: |
|
|
hostPath: |
|
|
path: /etc/resolv.conf |
|
|
path: /etc/resolv.conf |
|
|
containers: |
|
|
containers: |
|
|
- name: "flannel-server-helper" |
|
|
|
|
|
image: "{{ flannel_server_helper_image_repo }}:{{ flannel_server_helper_image_tag }}" |
|
|
|
|
|
env: |
|
|
|
|
|
# Cluster name |
|
|
|
|
|
- name: CLUSTER_NAME |
|
|
|
|
|
valueFrom: |
|
|
|
|
|
configMapKeyRef: |
|
|
|
|
|
name: canal-config |
|
|
|
|
|
key: cluster_name |
|
|
|
|
|
# The location of the etcd cluster. |
|
|
|
|
|
- name: FLANNELD_ETCD_ENDPOINTS |
|
|
|
|
|
valueFrom: |
|
|
|
|
|
configMapKeyRef: |
|
|
|
|
|
name: canal-config |
|
|
|
|
|
key: etcd_endpoints |
|
|
|
|
|
args: |
|
|
|
|
|
- "--network-config=/etc/flannel-network.json" |
|
|
|
|
|
- "--etcd-prefix=/$(CLUSTER_NAME)/network" |
|
|
|
|
|
- "--etcd-server=$(FLANNELD_ETCD_ENDPOINTS)" |
|
|
|
|
|
volumeMounts: |
|
|
|
|
|
- name: "networkconfig" |
|
|
|
|
|
mountPath: "/etc/flannel-network.json" |
|
|
|
|
|
imagePullPolicy: "Always" |
|
|
|
|
|
# Runs the flannel daemon to enable vxlan networking between |
|
|
# Runs the flannel daemon to enable vxlan networking between |
|
|
# container hosts. |
|
|
# container hosts. |
|
|
- name: flannel |
|
|
- name: flannel |
|
|