2d49f6ec6bfca24b01c6fccc5f78aa6ea531839e
[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       volumes:
30         - name: "testreceiverconf"
31           configMap:
32             name: "testreceiverconf"