➜ ~ helm repo add stable https://charts.helm.sh/stable "stable" has been added to your repositories
检索验证repo:
1
helm search repo openldap
1 2 3 4
➜ ~ helm search repo openldap NAME CHART VERSION APP VERSION DESCRIPTION stable/openldap 1.2.7 2.4.48 DEPRECATED - Community developed LDAP software
拉取chart
为了能够进行配置修改操作,将chart拉到本地:
1
helm pull stable/openldap
解压chart:
1
tar -zxvf openldap-1.2.7.tgz
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
➜ github tar -zxvf openldap-1.2.7.tgz x openldap/Chart.yaml x openldap/values.yaml x openldap/templates/NOTES.txt x openldap/templates/_helpers.tpl x openldap/templates/configmap-customldif.yaml x openldap/templates/configmap-env.yaml x openldap/templates/deployment.yaml x openldap/templates/pvc.yaml x openldap/templates/secret.yaml x openldap/templates/service.yaml x openldap/templates/tests/openldap-test-runner.yaml x openldap/templates/tests/openldap-tests.yaml x openldap/.helmignore x openldap/README.md
Password: WARNING: This chart is deprecated NAME: ldap LAST DEPLOYED: Wed Jan 15 21:56:54 2025 NAMESPACE: default STATUS: deployed REVISION: 1 TEST SUITE: None NOTES: OpenLDAP has been installed. You can access the server from within the k8s cluster using:
ldap-openldap.default.svc.cluster.local:389
You can access the LDAP adminPassword and configPassword using:
You can access the LDAP service, from within the cluster (or with kubectl port-forward) with a command like (replace password and domain): ldapsearch -x -H ldap://ldap-openldap.default.svc.cluster.local:389 -b dc=example,dc=org -D "cn=admin,dc=example,dc=org" -w $LDAP_ADMIN_PASSWORD
Test server health using Helm test: helm test ldap
You can also consider installing the helm chart for phpldapadmin to manage this instance of OpenLDAP, or install Apache Directory Studio, and connect using kubectl port-forward.
Helm 测试
1
helm list ldap
查看idap的pod:
1
kubectl --kubeconfig=$HOME/.kube/king_test_config get pod -A|grep ldap
1 2
NAMESPACE NAME READY STATUS RESTARTS AGE default ldap-openldap-6d5cc55fc-vzq5v 1/1 Running 0 17m
## Persist data to a persistent volume persistence: enabled: false ## database data Persistent Volume Storage Class ## If defined, storageClassName: <storageClass> ## If set to "-", storageClassName: "", which disables dynamic provisioning ## If undefined (the default) or set to null, no storageClassName spec is ## set, choosing the default provisioner. (gp2 on AWS, standard on ## GKE, AWS & OpenStack) ## # storageClass: "-" accessMode: ReadWriteOnce size: 8Gi # existingClaim: ""