apiVersion: v1
kind: Service
metadata:
  name: {{ include "ldap-rest.fullname" . }}
  labels:
    {{- include "ldap-rest.labels" . | nindent 4 }}
  {{- with .Values.service.annotations }}
  annotations:
    {{- toYaml . | nindent 4 }}
  {{- end }}
spec:
  type: {{ .Values.service.type }}
  ports:
    - name: http
      port: {{ .Values.service.port }}
      targetPort: http
      protocol: TCP
  selector:
    {{- include "ldap-rest.selectorLabels" . | nindent 4 }}
