sso(openldap): remove bootstrap ldif
This commit is contained in:
parent
a4bcaf8912
commit
671b28b8f4
@ -1,15 +0,0 @@
|
|||||||
# services/openldap/configmap-bootstrap.yaml
|
|
||||||
apiVersion: v1
|
|
||||||
kind: ConfigMap
|
|
||||||
metadata:
|
|
||||||
name: openldap-bootstrap
|
|
||||||
namespace: sso
|
|
||||||
data:
|
|
||||||
00-organizational-units.ldif: |
|
|
||||||
dn: ou=users,dc=bstein,dc=dev
|
|
||||||
objectClass: organizationalUnit
|
|
||||||
ou: users
|
|
||||||
|
|
||||||
dn: ou=groups,dc=bstein,dc=dev
|
|
||||||
objectClass: organizationalUnit
|
|
||||||
ou: groups
|
|
||||||
@ -3,6 +3,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
|
|||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
namespace: sso
|
namespace: sso
|
||||||
resources:
|
resources:
|
||||||
- configmap-bootstrap.yaml
|
|
||||||
- service.yaml
|
- service.yaml
|
||||||
- statefulset.yaml
|
- statefulset.yaml
|
||||||
|
|||||||
@ -20,25 +20,6 @@ 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
|
||||||
@ -78,14 +59,6 @@ spec:
|
|||||||
mountPath: /var/lib/ldap
|
mountPath: /var/lib/ldap
|
||||||
- name: slapd-config
|
- name: slapd-config
|
||||||
mountPath: /etc/ldap/slapd.d
|
mountPath: /etc/ldap/slapd.d
|
||||||
- name: bootstrap-ldif
|
|
||||||
mountPath: /container/service/slapd/assets/config/bootstrap/ldif/custom
|
|
||||||
volumes:
|
|
||||||
- name: bootstrap-src
|
|
||||||
configMap:
|
|
||||||
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