1、基本概念
上节在k8s中部署了harbor和ldap,本节将部署harbor使用openLDAP验证,部署方式与之前相同,只是改了adminserver-cm.yaml的AUTH_MODE: "ldap_auth"。另外harbor配置ldap登录非必须,按需。
2、部署
下载项目
git clone https://github.com/dotbalo/helm.git
[root@k8s-master01 ci]# cd harbor-helm-ldap/[root@k8s-master01 harbor-helm-ldap]# lscharts CONTRIBUTING.md README.md requirements.yaml values.yaml
Chart.yaml LICENSE requirements.lock templates
[root@k8s-master01 harbor-helm-ldap]# pwd
/root/ci/harbor-helm-ldap
部署服务,步骤与之前大同小异
[root@k8s-master01 harbor-helm-ldap]# helm install --name hb-ldap . --set externalDomain=harbor.xxx.net --wait --timeout 1500 --debug --namespace harbor
.....==> v1beta1/Deployment
hb-ldap-redis hb-ldap-harbor-adminserver hb-ldap-harbor-chartmuseum hb-ldap-harbor-clair hb-ldap-harbor-jobservice hb-ldap-harbor-notar