27 lines
749 B
YAML
27 lines
749 B
YAML
|
|
{{- if .Values.externalLDAP.enabled }}
|
||
|
|
apiVersion: apps/v1
|
||
|
|
kind: Deployment
|
||
|
|
metadata:
|
||
|
|
labels:
|
||
|
|
app: oc-openldap
|
||
|
|
name: {{ .Release.Name }}-oc-openldap
|
||
|
|
spec:
|
||
|
|
replicas: 1
|
||
|
|
template:
|
||
|
|
spec:
|
||
|
|
containers:
|
||
|
|
- name: oc-openldap
|
||
|
|
image: {{ .Values.openldap.image.repository }}
|
||
|
|
env:
|
||
|
|
- name: LDAP_ORGANISATION
|
||
|
|
value: {{ .Values.openldap.env.LDAP_ORGANISATION }}
|
||
|
|
- name: LDAP_DOMAIN
|
||
|
|
value: {{ .Values.openldap.env.LDAP_DOMAIN }}
|
||
|
|
volumeMounts:
|
||
|
|
- name: ldif
|
||
|
|
mountPath: /container/service/slapd/assets/config/bootstrap/ldif/external
|
||
|
|
volumes:
|
||
|
|
- name: ldif
|
||
|
|
configMap:
|
||
|
|
name: openldap-ldif
|
||
|
|
{{- end }}
|