1.2 KiB
1.2 KiB
本文作者:丁辉
Helm部署Harbor
开始部署
-
添加 Helm 仓库
helm repo add harbor https://helm.goharbor.io helm repo update
-
编辑 values.yaml
vi harbor-values.yaml
内容如下
expose: type: ingress tls: enabled: true certSource: secret secret: secretName: "harbor-tls" ingress: hosts: core: # 域名 # 对外访问地址 externalURL: http://域名 # 配置 Harbor密码 harborAdminPassword: "Harbor12345" # 持久化存储配置部分 persistence: enabled: true # 是否启用监控组件 metrics: enabled: true
-
安装
helm install harbor \ --namespace harbor \ --create-namespace \ harbor/harbor \ -f harbor-values.yaml
卸载
-
卸载 Harbor
helm uninstall harbor -n harbor
-
删除 Harbor 命名空间
kubectl delete ns harbor