apiVersion: v1
kind: Service
metadata:
  name: {{ template "examplechart.fullname" . }}
  labels:
    app: {{ template "examplechart.name" . }}
    chart: {{ template "examplechart.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 "examplechart.name" . }}
    release: {{ .Release.Name }}
