- 增加repo
helm repo add harbor https://helm.goharbor.io
helm repo update
-
更新helm dependency
harbor的helm部署依赖helm部署的postgresql,在官方的安装文档没有明确说明,直接按照官方文档说明安装,就会缺失postgresql的部署,导致整个服务无法启动。
helm dependency update -
安装1:修改values.yaml
helm pull harbor/harbor
tar -xzvf harbor-1.2.2.tgz
修改values.yaml
- 证书名称修改
- pvc修改
helm install harbor harbor/harbor -f values.yaml
- 安装2:自建证书
使用自己的ssl证书, 创建 secret , 给 harbor 用, 路径建议使用 绝对路径
kubectl -n default create secret tls harbor-certs
--key /certs/harbor.key
--cert /certs/harbor.pem
使用自己的ssl证书, 创建 secret , 给 notary用, 路径建议使用 绝对路径
kubectl -n default create secret tls notary-certs
--key /certs/notary.key
--cert /certs/notary.pem
网友评论