Member-only story
Adding Custom Schema for OpenLDAP Running on Kubernetes
I need to run LDAP service on the Kubernetes cluster with some directory data imported. I choose OpenLDAP to run on the OpenShift Container Platform (OCP).
Deploy OpenLDAP helm chart
With the Helm 3 release, the deployment of a helm chart is easy. There is an OpenLDAP chart available in the stable chart repo. We will use that.
Download the latest Helm3 tools, add the stable repo, and update it.
helm repo add stable https://kubernetes-charts.storage.googleapis.com/helm repo update
Create the following values.yaml file,
image:
repository: osixia/openldap
tag: latest
# tag: 1.2.4service:
ldapPort: 389
type: NodePortenv:
LDAP_ORGANISATION: "Demo System"
LDAP_DOMAIN: "demo.io.cpak"
LDAP_TLS: "false"persistence:
enabled: true
accessMode: ReadWriteOnce
size: 8Gi
We will use the latest OpenLDAP docker image. Expose it through NodePort for external service to use. We enable the persistence to let K8s using the default dynamic storage class to provision.
We are ready to deploy the chart. Since we are running on OpenShift and the container…