Update K8S to include an auto generator of values template
This commit is contained in:
27
opencloud/templates/openldap.yaml
Normal file
27
opencloud/templates/openldap.yaml
Normal file
@@ -0,0 +1,27 @@
|
||||
{{- 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 }}
|
||||
Reference in New Issue
Block a user