From 9ee91208c8a16bac0a05ce23b33ef10a184bbc02 Mon Sep 17 00:00:00 2001 From: jgarlapati2023 <150621266+jgarlapati2023@users.noreply.github.com> Date: Sun, 12 Nov 2023 15:01:17 -0500 Subject: [PATCH] Update ldap-deployment.yaml.example --- .../ldap-deployment.yaml.example | 45 +++---------------- 1 file changed, 7 insertions(+), 38 deletions(-) diff --git a/example/kubernetes/using-secrets/ldap-deployment.yaml.example b/example/kubernetes/using-secrets/ldap-deployment.yaml.example index 115c3b3..65735f3 100644 --- a/example/kubernetes/using-secrets/ldap-deployment.yaml.example +++ b/example/kubernetes/using-secrets/ldap-deployment.yaml.example @@ -1,51 +1,20 @@ apiVersion: apps/v1 kind: Deployment metadata: - name: ldap - labels: - app: ldap + name: ldap-deployment spec: + replicas: 1 selector: matchLabels: app: ldap - replicas: 1 template: metadata: labels: app: ldap spec: containers: - - name: ldap - image: osixia/openldap:1.5.0 - args: ["--copy-service"] - volumeMounts: - - name: ldap-data - mountPath: /var/lib/ldap - - name: ldap-config - mountPath: /etc/ldap/slapd.d - - name: ldap-certs - mountPath: /container/service/slapd/assets/certs - - name: secret-volume - mountPath: /container/environment/01-custom - - name: container-run - mountPath: /container/run - ports: - - containerPort: 389 - name: openldap - - containerPort: 636 - name: openldapssl - volumes: - - name: ldap-data - hostPath: - path: "/data/ldap/db" - - name: ldap-config - hostPath: - path: "/data/ldap/config" - - name: ldap-certs - hostPath: - path: "/data/ldap/certs" - - name: "secret-volume" - secret: - secretName: "ldap-secret" - - name: container-run - emptyDir: {} + - name: 389ds + image: 389ds/dirsrv:latest + env: + - name: DS_DM_PASSWORD +    value: secret