ed0f449e2d65126df1411dd13c2dadbd9c226c5c
[csit.git] / resources / templates / kubernetes / pods / contiv-vswitch.yaml
1 apiVersion: v1
2 kind: Pod
3 metadata:
4   name: vswitch-vpp
5   namespace: csit
6 spec:
7   hostNetwork: true
8   containers:
9     - name: "vswitch"
10       image: prod_vpp_agent
11       imagePullPolicy: IfNotPresent
12       securityContext:
13         privileged: true
14       ports:
15         - containerPort: 5002
16         - containerPort: 9191
17       readinessProbe:
18         httpGet:
19           path: /readiness
20           port: 9191
21         periodSeconds: 1
22       livenessProbe:
23         httpGet:
24           path: /liveness
25           port: 9191
26         periodSeconds: 1
27         initialDelaySeconds: 15
28       env:
29         - name: MICROSERVICE_LABEL
30           value: vswitch
31       volumeMounts:
32         - name: vpp-config
33           mountPath: /etc/vpp
34         - name: agent-config
35           mountPath: /opt/vpp-agent/dev
36         - name: memif-sockets
37           mountPath: /tmp
38         - name: device-uio
39           mountPath: /dev
40   volumes:
41   - name: vpp-config
42     configMap:
43       name: vswitch-vpp-cfg
44   - name: agent-config
45     configMap:
46       name: vswitch-agent-cfg
47   - name: memif-sockets
48     hostPath:
49       path: /tmp
50   - name: device-uio
51     hostPath:
52       path: /dev