apiVersion: v1
kind: Service
metadata:
  name: {{ template "dacap.fullname" . }}
  labels:
    app: {{ template "dacap.name" . }}
    chart: {{ template "dacap.chart" . }}
    release: {{ .Release.Name }}
    heritage: {{ .Release.Service }}
spec:
  type: {{ .Values.service.type }}
  ports:
    - port: {{ .Values.service.port }}
      targetPort: 3000
      protocol: TCP
      name: http
  selector:
    app: {{ template "dacap.name" . }}
    release: {{ .Release.Name }}
