apiVersion: v1
kind: Service
metadata:
  name: {{ .Values.defaultBackend.service.name }}
  labels:
    app: {{ template "haproxy-ingress.name" . }}
    chart: {{ template "haproxy-ingress.chart" . }}
    release: {{ .Release.Name }}
    heritage: {{ .Release.Service }}
spec:
  ports:
    - port: 8080
  selector:
    app: {{ template "haproxy-ingress.name" . }}
    release: {{ .Release.Name }}