apiVersion: v1 kind: Service metadata: name: {{ template "openldap.fullname" . }}-headless labels: app: {{ template "openldap.fullname" . }} chart: {{ template "openldap.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} spec: ports: - port: {{ .Values.service.ldapPort }} name: ldap-port targetPort: ldap-port clusterIP: None selector: app: {{ template "openldap.fullname" . }} release: {{ .Release.Name }} type: ClusterIP sessionAffinity: None