Merge "Merge branch 'development'"
[ric-plt/a1.git] / integration_tests / testreceiver / templates / deployment.yaml
1 apiVersion: apps/v1
2 kind: Deployment
3 metadata:
4   name: {{ include "testreceiver.fullname" . }}
5   labels:
6 {{ include "testreceiver.labels" . | indent 4 }}
7 spec:
8   replicas: 1
9   selector:
10     matchLabels:
11       app.kubernetes.io/name: {{ include "testreceiver.name" . }}
12       app.kubernetes.io/instance: {{ .Release.Name }}
13   template:
14     metadata:
15       labels:
16         app.kubernetes.io/name: {{ include "testreceiver.name" . }}
17         app.kubernetes.io/instance: {{ .Release.Name }}
18     spec:
19       containers:
20         - name: testreceiver
21           image: testreceiver:latest
22           imagePullPolicy: Never
23           resources:
24             {{- toYaml .Values.resources | nindent 12 }}
25           volumeMounts:
26             - name: testreceiverconf
27               mountPath: /opt/route/local.rt
28               subPath: local.rt
29         - name: delayreceiver
30           image: testreceiver:latest
31           imagePullPolicy: Never
32           resources:
33             {{- toYaml .Values.resources | nindent 12 }}
34           volumeMounts:
35             - name: delayreceiverconf
36               mountPath: /opt/route/local.rt
37               subPath: local.rt
38           env:
39           - name: TEST_RCV_PORT
40             value: "{{ .Values.delayrmrservice.port }}"
41           - name: TEST_RCV_SEC_DELAY
42             value: "5"
43           - name: HANDLER_ID
44             value: "delay_receiver"
45
46       volumes:
47         - name: "testreceiverconf"
48           configMap:
49             name: "testreceiverconf"
50         - name: "delayreceiverconf"
51           configMap:
52             name: "delayreceiverconf"