|
| 1 | +apiVersion: extensions/v1beta1 |
| 2 | +kind: DaemonSet |
| 3 | +metadata: |
| 4 | + name: ovs-agent |
| 5 | +spec: |
| 6 | + template: |
| 7 | + metadata: |
| 8 | + labels: |
| 9 | + app: ovs-agent |
| 10 | + spec: |
| 11 | + nodeSelector: |
| 12 | + {{ .Values.labels.ovs.node_selector_key }}: {{ .Values.labels.ovs.node_selector_value }} |
| 13 | + securityContext: |
| 14 | + runAsUser: 0 |
| 15 | + dnsPolicy: ClusterFirst |
| 16 | + hostNetwork: true |
| 17 | + containers: |
| 18 | + - name: ovs-agent |
| 19 | + image: {{ .Values.images.neutron_openvswitch_agent }} |
| 20 | + imagePullPolicy: {{ .Values.images.pull_policy }} |
| 21 | + securityContext: |
| 22 | + privileged: true |
| 23 | + # ensures this container can can see a br-int |
| 24 | + # bridge before its marked as ready |
| 25 | + readinessProbe: |
| 26 | + exec: |
| 27 | + command: |
| 28 | + - bash |
| 29 | + - -c |
| 30 | + - 'ovs-vsctl list-br | grep -q br-int' |
| 31 | + env: |
| 32 | + - name: INTERFACE_NAME |
| 33 | + value: {{ .Values.network.interface.openvswitch | default .Values.network.interface.default }} |
| 34 | + - name: POD_NAME |
| 35 | + valueFrom: |
| 36 | + fieldRef: |
| 37 | + fieldPath: metadata.name |
| 38 | + - name: NAMESPACE |
| 39 | + valueFrom: |
| 40 | + fieldRef: |
| 41 | + fieldPath: metadata.namespace |
| 42 | + - name: COMMAND |
| 43 | + value: "bash /tmp/neutron-openvswitch-agent.sh" |
| 44 | + - name: DEPENDENCY_JOBS |
| 45 | + value: "{{ include "joinListWithColon" .Values.dependencies.ovs_agent.jobs }}" |
| 46 | + - name: DEPENDENCY_SERVICE |
| 47 | + value: "{{ include "joinListWithColon" .Values.dependencies.ovs_agent.service }}" |
| 48 | + volumeMounts: |
| 49 | + - name: neutronopenvswitchagentsh |
| 50 | + mountPath: /tmp/neutron-openvswitch-agent.sh |
| 51 | + subPath: neutron-openvswitch-agent.sh |
| 52 | + - name: neutronconf |
| 53 | + mountPath: /etc/neutron/neutron.conf |
| 54 | + subPath: neutron.conf |
| 55 | + - name: ml2confini |
| 56 | + mountPath: /etc/neutron/plugins/ml2/ml2-conf.ini |
| 57 | + subPath: ml2-conf.ini |
| 58 | + - name: libmodules |
| 59 | + mountPath: /lib/modules |
| 60 | + readOnly: true |
| 61 | + - name: run |
| 62 | + mountPath: /run |
| 63 | + - mountPath: /etc/resolv.conf |
| 64 | + name: resolvconf |
| 65 | + subPath: resolv.conf |
| 66 | + volumes: |
| 67 | + - name: varlibopenvswitch |
| 68 | + emptyDir: {} |
| 69 | + - name: neutronopenvswitchagentsh |
| 70 | + configMap: |
| 71 | + name: neutron-bin |
| 72 | + - name: neutronconf |
| 73 | + configMap: |
| 74 | + name: neutron-etc |
| 75 | + - name: ml2confini |
| 76 | + configMap: |
| 77 | + name: neutron-etc |
| 78 | + - name: resolvconf |
| 79 | + configMap: |
| 80 | + name: neutron-etc |
| 81 | + - name: libmodules |
| 82 | + hostPath: |
| 83 | + path: /lib/modules |
| 84 | + - name: run |
| 85 | + hostPath: |
| 86 | + path: /run |
0 commit comments