Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
594 views
in Technique[技术] by (71.8m points)

artifactory - 如何在Artifactory中配置远程头盔仓库?(How to configure remote Helm repo in Artifactory?)

we have two Artifactories.

(我们有两个人工工厂。)

Artifactory 1 (artifactory.local.com) has a local Helm repo, which is working perfectly.

(Artifactory 1(artifactory.local.com)有一个本地的Helm存储库,运行正常。)

You can reach it with helm and download Helm Charts without problems.

(您可以通过头盔来访问它并下载头盔图表,而不会遇到任何问题。)

Artifactory 2 (artifactory.local.cloud) has a local Helm repo, a remote Helm repo (artifactory.local.com) and a virtual Helm repo, combine the first two repositories.

(Artifactory 2(artifactory.local.cloud)有一个本地Helm存储库,一个远程Helm存储库(artifactory.local.com)和一个虚拟Helm存储库,它们结合了前两个存储库。)

Then we have a Rundeck server, running Helm.

(然后,我们有一个运行Helm的Rundeck服务器。)

There's only one repo configured, artifactory.local.cloud.

(只有一个配置的仓库,articleory.local.cloud。)

It can only reach this repo, because of network routing.

(由于网络路由,它只能到达此存储库。)

When installing Helm charts from the local repo on artifactory.local.cloud, there's no problem.

(当从articleory.local.cloud上的本地存储库安装Helm图表时,没有问题。)

BUT chart from artifactory.local.com cannot be retrieved.

(无法检索来自artworkory.local.com的图表。)

The problem is that Helm is trying to get them from the first artifactory(.local.com) and there's no network route to this one.

(问题在于,Helm尝试从第一个工件(.local.com)中获取它们,并且没有通往该工件的网络路由。)

Helm repo update is not helping.

(头盔存储库更新无济于事。)

The index.yml of the virtual helm repo is also pointing to the other Artifactory for this packages.

(虚拟头盔仓库的index.yml也指向该软件包的其他Artifactory。)

I think that is the cause.

(我认为这是原因。)

But I don't know how to fix this.

(但是我不知道该如何解决。)

Can anybody help?

(有人可以帮忙吗?)

Both Artifactories are installed in version 6.12.

(两个Artifactories均安装在版本6.12中。)

I hope my description is understandable :D Thanks in advance!

(希望我的描述是可以理解的:D预先感谢!)

  ask by audioslave translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

What you are describing here is a smart remote repository - more information in this link - https://www.jfrog.com/confluence/display/RTF/Smart+Remote+Repositories Did you configure the remote repository with the "/api/helm/" part in the path?

(您在此处描述的是一个智能远程存储库-此链接中的更多信息-https: //www.jfrog.com/confluence/display/RTF/Smart+Remote+Repositories您是否使用“ / api /掌舵/”路径中的一部分?)

For example - " http://art.local:8081/artifactory/api/helm/helm-local " - this is the correct configuration.

(例如,“ http://art.local:8081 / artifactory / api / helm / helm-local ”-这是正确的配置。)

In addition, from your description, I understood that Artifactory 2 can not reach Artifactory 1 because of network restrictions - if this is really the case, no configuration you do will make this work, and you will need to configure a route between those two instances.

(此外,从您的描述中,我了解到Artifactory 2由于网络限制而无法到达Artifactory 1-如果确实如此,则无需进行任何配置即可完成此工作,并且需要在这两个实例之间配置路由。)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...