fnux-playground/openldap: set upgrade policy, fix service endpoints
This commit is contained in:
parent
a131fe805d
commit
68bbbba0df
3 changed files with 8 additions and 1 deletions
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 . }}"
|
||||
|
|
Loading…
Add table
Reference in a new issue