fnux-playground/openldap: set upgrade policy, fix service endpoints

This commit is contained in:
fnux 2021-08-02 08:20:14 +02:00
parent a131fe805d
commit 68bbbba0df
No known key found for this signature in database
GPG Key ID: 4502C902C00A1E12
3 changed files with 8 additions and 1 deletions

View File

@ -6,6 +6,10 @@ metadata:
app: openldap
spec:
replicas: 1
strategy:
# Delete old pod before starting the new one - slapd doesn't react well
# with two instances hitting the same database.
type: "Recreate"
selector:
matchLabels:
app: "{{ tpl .Values.identifier . }}-openldap"

View File

@ -1,11 +1,13 @@
apiVersion: v1
kind: Service
metadata:
name: "{{ tpl .Values.identifier . }}"
name: "{{ .Release.Name }}"
labels:
app: openldap
spec:
type: ClusterIP
selector:
app: "{{ tpl .Values.identifier . }}-openldap"
ports:
- port: 389
name: ldap

View File

@ -2,6 +2,7 @@ clusterDomain: "c1.k8s.ooo"
fqdn: "{{ .Release.Name }}.{{ .Release.Namespace }}.svc.{{ .Values.clusterDomain }}"
identifier: "{{ .Release.Name }}"
# See https://www.openldap.org/doc/admin24/slapdconf2.html section 5.2.1.2;
ldapLogLevel: "256"
ldapOrganisation: "ungleich glarus ag"
ldapDomain: "{{ tpl .Values.fqdn . }}"