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