Harbor
约 2 分钟阅读
Habor
- goharbor/harborGitHubgoharbor/harborgoharbor/harbor · Kubernetes 上的容器镜像仓库 · goharbor/harbor-helm - trusted cloud native repository for Kubernetes · 属于 CI 和 CD 之间,Nexus 偏向开发,Harbor 偏向生产部署交付笔记:Harbor
- Kubernetes 上的容器镜像仓库
- goharbor/harbor-helmGitHubgoharbor/harbor-helmgoharbor/harbor · Kubernetes 上的容器镜像仓库 · goharbor/harbor-helm - trusted cloud native repository for Kubernetes · 属于 CI 和 CD 之间,Nexus 偏向开发,Harbor 偏向生产部署交付笔记:Harbor - trusted cloud native repository for Kubernetes
- 属于 CI 和 CD 之间,Nexus 偏向开发,Harbor 偏向生产部署交付
- 特性
- trivy 安全分析
- 账号管理、多租户、RBAC
- 镜像副本、Harbor 之间副本复制
- WebUI
- 配置
- 默认会部署 ingress
- 要指定 externalURL 确保生成地址正确
- 默认关闭内部 TLS - internalTLS
- 存储
- registry - 5Gi
- chartmuseum - 5Gi
- jobservice - 1Gi
- database - 1Gi - 可用外部
- 如果使用内部数据库记得修改账号密码
- redis - 1Gi - 可用外部
- trivy - 2Gi
- imageChartStorage
- 支持 azure,gcs,s3,swift,oss
- 端口
- 443
- 80
- 4443
- Notary - Docker Content Trust
- 文档
- 域名映射 Project #13579GitHub Issuegoharbor/harbor#13579
- 镜像 docker 无法自动添加 library #12719GitHub Issuegoharbor/harbor#12719
| Resource | Minimum | Recommended |
|---|---|---|
| CPU | 2 CPU | 4 CPU |
| Mem | 4 GB | 8 GB |
| Disk | 40 GB | 160 GB |
helm repo add harbor https://helm.goharbor.io安装
- docker 安装过程会使用
goharbor/prepare进行构建需要的 docker compose
配置
组件
- postgresql
- redis
- clari
- beego
- chartmuseum
- docker/distribution
- docker/notary
- helm
- swagger-ui
Helm
harborAdminPassword: 'Harbor12345'
# 部署组件
# =========
# 不使用 Ingress 则会部署 nginx
nginx:
portal:
core:
jobservice:
registry:
chartmuseum:
clair:
trivy:
notary:
database:
# 设置为 external 使用外部数据库
type: internal
# 配置外部数据库
external:
host: '192.168.0.1'
port: '5432'
username: 'user'
password: 'password'
# coreDatabase: "registry"
# clairDatabase: "clair"
# notaryServerDatabase: "notary_server"
# notarySignerDatabase: "notary_signer"
redis:
type: internalFAQ
子域名
flag provided but not defined: -format
- Trivy 接口变化,harbor 未匹配 - v2.4.2/2.5.0
- 可直接指定 aquasec/harbor-scanner-trivy v0.25.0+
- aquasecurity/trivy#1656GitHub Issueaquasecurity/trivy#1656
- goharbor/harbor#16554GitHub Issuegoharbor/harbor#16554
Trust not fully operational
- bitnami/charts#3545GitHub Issuebitnami/charts#3545
关联信息
反向链接、本文链接的其他页面和外部资料。
References
GitHub7 条
- aquasecurity/trivy#1656github.com/aquasecurity/trivy/issues/1656
- bitnami/charts#3545github.com/bitnami/charts/issues/3545
- goharbor/harborgithub.com/goharbor/harbor
- goharbor/harbor-helmgithub.com/goharbor/harbor-helm
- goharbor/harbor#12719github.com/goharbor/harbor/issues/12719
- goharbor/harbor#13579github.com/goharbor/harbor/issues/13579
- goharbor/harbor#16554github.com/goharbor/harbor/issues/16554
其他外链2 条
- goharbor.io/docs/2.0.0/install-config/configure-yml-filegoharbor.io/docs/2.0.0/install-config/configure-yml-file
- goharbor.io/docs/2.2.0/install-config/harbor-compatibility-listgoharbor.io/docs/2.2.0/install-config/harbor-compatibility-list