/
openvswitch.yaml.j2
149 lines (149 loc) · 5.08 KB
/
openvswitch.yaml.j2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
apiVersion: extensions/v1beta1
kind: DaemonSet
spec:
template:
metadata:
labels:
app: neutron-openvswitch
spec:
securityContext:
runAsUser: 0
dnsPolicy: ClusterFirst
hostNetwork: true
containers:
- name: neutron-openvswitch-agent
image: {{ deployment.image.neutron_openvswitch_agent }}
imagePullPolicy: Always
securityContext:
privileged: true
env:
- name: INTERFACE_NAME
value: {{ network.minion_interface_name }}
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: COMMAND
value: "bash /tmp/neutron-openvswitch-agent.sh"
- name: DEPENDENCY_JOBS
value: "neutron-post,nova-post"
- name: DEPENDENCY_SERVICE
value: "keystone-api,rabbitmq,neutron-server"
- name: DEPENDENCY_CONTAINER
value: "openvswitch-db-server,openvswitch-vswitchd"
- name: DEPENDENCY_CONFIG
value: "/etc/neutron/neutron.conf,/etc/neutron/plugins/ml2/ml2-conf.ini"
volumeMounts:
- name: neutronopenvswitchagentsh
mountPath: /tmp/neutron-openvswitch-agent.sh
subPath: neutron-openvswitch-agent.sh
- name: neutronconf
mountPath: /configmaps/neutron.conf
- name: ml2confini
mountPath: /configmaps/ml2-conf.ini
- name: libmodules
mountPath: /lib/modules
readOnly: true
- name: run
mountPath: /run
- mountPath: /etc/resolv.conf
name: resolvconf
subPath: resolv.conf
- name: openvswitch-db-server
image: {{ deployment.image.openvswitch_db_server }}
imagePullPolicy: Always
securityContext:
privileged: true
env:
- name: INTERFACE_NAME
value: {{ network.minion_interface_name }}
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: COMMAND
value: "bash /tmp/openvswitch-db-server.sh"
volumeMounts:
- name: openvswitchdbserversh
mountPath: /tmp/openvswitch-db-server.sh
subPath: openvswitch-db-server.sh
- mountPath: /etc/resolv.conf
name: resolvconf
subPath: resolv.conf
- name: varlibopenvswitch
mountPath: /var/lib/openvswitch/
- name: run
mountPath: /run
- name: openvswitch-vswitchd
image: {{ deployment.image.openvswitch_vswitchd }}
imagePullPolicy: Always
securityContext:
privileged: true
env:
- name: INTERFACE_NAME
value: {{ network.minion_interface_name }}
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: COMMAND
value: "bash /tmp/openvswitch-vswitchd.sh"
- name: DEPENDENCY_CONTAINER
value: "openvswitch-db-server"
volumeMounts:
- name: openvswitchvswitchdsh
mountPath: /tmp/openvswitch-vswitchd.sh
subPath: openvswitch-vswitchd.sh
- name: openvswitchensureconfiguredsh
mountPath: /tmp/openvswitch-ensure-configured.sh
subPath: openvswitch-ensure-configured.sh
- mountPath: /etc/resolv.conf
name: resolvconf
subPath: resolv.conf
- name: libmodules
mountPath: /lib/modules
readOnly: true
- name: run
mountPath: /run
volumes:
- name: openvswitchdbserversh
configMap:
name: neutron-openvswitchdbserversh
- name: openvswitchvswitchdsh
configMap:
name: neutron-openvswitchvswitchdsh
- name: openvswitchensureconfiguredsh
configMap:
name: neutron-openvswitchensureconfiguredsh
- name: varlibopenvswitch
emptyDir: {}
- name: neutronopenvswitchagentsh
configMap:
name: neutron-neutronopenvswitchagentsh
- name: neutronconf
configMap:
name: neutron-neutronconf
- name: ml2confini
configMap:
name: neutron-ml2confini
- name: resolvconf
configMap:
name: neutron-resolvconf
- name: libmodules
hostPath:
path: /lib/modules
- name: run
hostPath:
path: /run