apiVersion: apps/v1 kind: Deployment metadata: name: {{ include "testreceiver.fullname" . }} labels: {{ include "testreceiver.labels" . | indent 4 }} spec: replicas: 1 selector: matchLabels: app.kubernetes.io/name: {{ include "testreceiver.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} template: metadata: labels: app.kubernetes.io/name: {{ include "testreceiver.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} spec: containers: - name: testreceiver image: testreceiver:latest imagePullPolicy: Never resources: {{- toYaml .Values.resources | nindent 12 }} volumeMounts: - name: testreceiverconf mountPath: /opt/route/local.rt subPath: local.rt volumes: - name: "testreceiverconf" configMap: name: "testreceiverconf"