From 0437095f4bf958154f25a3f163f432b22fcdc743 Mon Sep 17 00:00:00 2001 From: Peter Mikus Date: Tue, 5 Dec 2017 14:44:32 +0100 Subject: CSIT-870 Kubernetes/Ligato integration - Update overall Kubernetes/Ligato integration - CSIT-871 Update infrastructure / images - CSIT-872 Update of KubernetesUtils.py Change-Id: I7833f56abd351c694d3d3e1c9c45e649aec892e1 Signed-off-by: Peter Mikus --- .../templates/kubernetes/pods/contiv-vnf.yaml | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 resources/templates/kubernetes/pods/contiv-vnf.yaml (limited to 'resources/templates/kubernetes/pods/contiv-vnf.yaml') diff --git a/resources/templates/kubernetes/pods/contiv-vnf.yaml b/resources/templates/kubernetes/pods/contiv-vnf.yaml new file mode 100644 index 0000000000..5ef89b5716 --- /dev/null +++ b/resources/templates/kubernetes/pods/contiv-vnf.yaml @@ -0,0 +1,45 @@ +apiVersion: v1 +kind: Pod +metadata: + name: $$VNF$$-vpp + namespace: csit +spec: + containers: + - name: $$VNF$$ + image: prod_vpp_agent + imagePullPolicy: IfNotPresent + securityContext: + privileged: true + ports: + - containerPort: 5002 + - containerPort: 9191 + readinessProbe: + httpGet: + path: /readiness + port: 9191 + periodSeconds: 1 + livenessProbe: + httpGet: + path: /liveness + port: 9191 + initialDelaySeconds: 15 + env: + - name: MICROSERVICE_LABEL + value: $$VNF$$ + volumeMounts: + - name: vpp-config + mountPath: /etc/vpp + - name: agent-config + mountPath: /opt/vpp-agent/dev + - name: memif-sockets + mountPath: /tmp + volumes: + - name: vpp-config + configMap: + name: $$VNF$$-vpp-cfg + - name: agent-config + configMap: + name: vnf-agent-cfg + - name: memif-sockets + hostPath: + path: /tmp \ No newline at end of file -- cgit 1.2.3-korg