sso(openldap): fix bootstrap ldif mount
This commit is contained in:
parent
9c6889440c
commit
a4bcaf8912
@ -20,6 +20,25 @@ spec:
|
|||||||
nodeSelector:
|
nodeSelector:
|
||||||
kubernetes.io/arch: arm64
|
kubernetes.io/arch: arm64
|
||||||
node-role.kubernetes.io/worker: "true"
|
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:
|
containers:
|
||||||
- name: openldap
|
- name: openldap
|
||||||
image: docker.io/osixia/openldap:1.5.0
|
image: docker.io/osixia/openldap:1.5.0
|
||||||
@ -61,11 +80,12 @@ spec:
|
|||||||
mountPath: /etc/ldap/slapd.d
|
mountPath: /etc/ldap/slapd.d
|
||||||
- name: bootstrap-ldif
|
- name: bootstrap-ldif
|
||||||
mountPath: /container/service/slapd/assets/config/bootstrap/ldif/custom
|
mountPath: /container/service/slapd/assets/config/bootstrap/ldif/custom
|
||||||
readOnly: true
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: bootstrap-ldif
|
- name: bootstrap-src
|
||||||
configMap:
|
configMap:
|
||||||
name: openldap-bootstrap
|
name: openldap-bootstrap
|
||||||
|
- name: bootstrap-ldif
|
||||||
|
emptyDir: {}
|
||||||
volumeClaimTemplates:
|
volumeClaimTemplates:
|
||||||
- metadata:
|
- metadata:
|
||||||
name: ldap-data
|
name: ldap-data
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user