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