sso(openldap): fix bootstrap ldif mount
This commit is contained in:
parent
9c6889440c
commit
a4bcaf8912
@ -20,6 +20,25 @@ spec:
|
||||
nodeSelector:
|
||||
kubernetes.io/arch: arm64
|
||||
node-role.kubernetes.io/worker: "true"
|
||||
initContainers:
|
||||
- name: copy-bootstrap-ldif
|
||||
image: docker.io/library/alpine:3.20
|
||||
securityContext:
|
||||
runAsUser: 0
|
||||
runAsGroup: 0
|
||||
command:
|
||||
- /bin/sh
|
||||
- -c
|
||||
- |
|
||||
set -euxo pipefail
|
||||
cp -a /bootstrap-src/. /bootstrap-dst/
|
||||
chmod -R 0644 /bootstrap-dst || true
|
||||
volumeMounts:
|
||||
- name: bootstrap-src
|
||||
mountPath: /bootstrap-src
|
||||
readOnly: true
|
||||
- name: bootstrap-ldif
|
||||
mountPath: /bootstrap-dst
|
||||
containers:
|
||||
- name: openldap
|
||||
image: docker.io/osixia/openldap:1.5.0
|
||||
@ -61,11 +80,12 @@ spec:
|
||||
mountPath: /etc/ldap/slapd.d
|
||||
- name: bootstrap-ldif
|
||||
mountPath: /container/service/slapd/assets/config/bootstrap/ldif/custom
|
||||
readOnly: true
|
||||
volumes:
|
||||
- name: bootstrap-ldif
|
||||
- name: bootstrap-src
|
||||
configMap:
|
||||
name: openldap-bootstrap
|
||||
- name: bootstrap-ldif
|
||||
emptyDir: {}
|
||||
volumeClaimTemplates:
|
||||
- metadata:
|
||||
name: ldap-data
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user