|
|
@ -26,7 +26,6 @@ spec: |
|
|
|
spec: |
|
|
|
tolerations: |
|
|
|
- operator: Exists |
|
|
|
effect: NoSchedule |
|
|
|
affinity: |
|
|
|
podAntiAffinity: |
|
|
|
requiredDuringSchedulingIgnoredDuringExecution: |
|
|
@ -47,7 +46,7 @@ spec: |
|
|
|
- --default-cidr={{ kube_pods_subnet }} |
|
|
|
env: |
|
|
|
- name: ENABLE_SSL |
|
|
|
value: "{{ enable_ssl }}" |
|
|
|
value: "{{ enable_ssl | lower }}" |
|
|
|
- name: POD_NAME |
|
|
|
valueFrom: |
|
|
|
fieldRef: |
|
|
@ -138,15 +137,15 @@ spec: |
|
|
|
- bash |
|
|
|
- /kube-ovn/start-cniserver.sh |
|
|
|
args: |
|
|
|
- --enable-mirror={{ traffic_mirror }} |
|
|
|
- --encap-checksum={{ encap_checksum }} |
|
|
|
- --enable-mirror={{ traffic_mirror | lower }} |
|
|
|
- --encap-checksum={{ encap_checksum | lower }} |
|
|
|
- --service-cluster-ip-range={{ kube_service_addresses }} |
|
|
|
securityContext: |
|
|
|
runAsUser: 0 |
|
|
|
privileged: true |
|
|
|
env: |
|
|
|
- name: ENABLE_SSL |
|
|
|
value: "{{ enable_ssl }}" |
|
|
|
value: "{{ enable_ssl | lower }}" |
|
|
|
- name: POD_IP |
|
|
|
valueFrom: |
|
|
|
fieldRef: |
|
|
@ -156,6 +155,8 @@ spec: |
|
|
|
fieldRef: |
|
|
|
fieldPath: spec.nodeName |
|
|
|
volumeMounts: |
|
|
|
- mountPath: /etc/openvswitch |
|
|
|
name: systemid |
|
|
|
- mountPath: /etc/cni/net.d |
|
|
|
name: cni-conf |
|
|
|
- mountPath: /run/openvswitch |
|
|
@ -188,6 +189,9 @@ spec: |
|
|
|
nodeSelector: |
|
|
|
kubernetes.io/os: "linux" |
|
|
|
volumes: |
|
|
|
- name: systemid |
|
|
|
hostPath: |
|
|
|
path: /etc/origin/openvswitch |
|
|
|
- name: host-run-ovs |
|
|
|
hostPath: |
|
|
|
path: /run/openvswitch |
|
|
@ -240,7 +244,7 @@ spec: |
|
|
|
privileged: false |
|
|
|
env: |
|
|
|
- name: ENABLE_SSL |
|
|
|
value: "{{ enable_ssl }}" |
|
|
|
value: "{{ enable_ssl | lower }}" |
|
|
|
- name: POD_IP |
|
|
|
valueFrom: |
|
|
|
fieldRef: |
|
|
|