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