apiVersion: v1
kind: Service
metadata:
  name: {{ template "fullname" . }}
  labels:
    heritage: {{ .Release.Service | quote }}
    release: {{ .Release.Name | quote }}
    chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
  {{ if .Values.deis.routable }}
    router.deis.io/routable: "true"
  annotations:
    router.deis.io/domains: {{ .Values.deis.domains | quote }}
  {{ end }}
spec:
  type: {{ .Values.serviceType }}
  ports:
  - port: {{ .Values.httpPort }}
    targetPort: {{ .Values.port }}
  selector:
    app: {{ template "fullname" . }}
