Harbor Version v2.10.0-6abb4eab, with Installer
Integration with Kubernetes
https://github.com/goharbor/harbor/issues/21149
在官方中,我们未找到相关方法(12/08/2024),所以我们尝试使用镜像复制的方式来迁移到 Kubernetes 中,然后手动处理其他数据。
# helm search repo harbor/harbor –versions | grep 2.10.0
harbor/harbor 1.14.0 2.10.0 An open source trusted cloud native registry th…
# helm pull harbor/harbor –version 1.14.0
# helm show values ./harbor-1.14.0.tgz > harbor-1.14.0.tgz.helm-values.yaml
# vim harbor-1.14.0.tgz.helm-values.yaml
// …
# helm upgrade –install –namespace container-registry –create-namespace harbor ./harbor-1.14.0.tgz -f harbor-1.14.0.tgz.helm-values.yaml
通过 Replications 功能,来进行镜像复制
Source resource filter
Name: **
Tag: exclude none-exist
Label: exclude none-exist
Tag: exclude none-exist
Label: exclude none-exist
Destination
Flattening: No Flattening
注意,针对 Tag Label 参数,我们尝试使用 match ** 来匹配,但是无法匹配到镜像。我们并未找到相关说明文档,所以最终决定使用 excluude 方式。