【问题标题】:Unable to push helm charts to jfrog artifactory无法将掌舵图推送到 jfrog 工件
【发布时间】:2021-08-25 11:54:49
【问题描述】:

我正在尝试将 helm 存储库添加到我的 jfrog 帐户,但它给出了错误。我创建了一个远程存储库。如何使用 helm 客户端推送

helm repo add <key> https://ip/artifactory/<key> --username username --password password
Error: looks like "https://ip/artifactory/<key>" is not a valid chart repository or cannot be reached: failed to fetch https://ip/artifactory/<key>/index.yaml : 401 Unauthorized

【问题讨论】:

    标签: devops kubernetes-helm artifactory jfrog


    【解决方案1】:

    您不能推送到远程存储库。它仅用于代理和缓存远程存储库。不允许您通过 Artifactory 将您的工件推送给他们。

    如果您查看documentation,您会发现您需要拥有一个虚拟、本地和远程 helm 存储库。

    例如:

    helm-local  -> your local repo
    helm-remote -> your remote repo
    helm        -> your virtual repo
    

    对于虚拟存储库,您设置default deployment repository(您上传的图表被推送到的位置)。这将是您创建的本地存储库。

    一旦设置好它们,您就可以登录虚拟存储库 - https://ip/artifactory/helmhelm repo add 命令使用此 URL。

    【讨论】:

    • 所以基本上我必须创建 3 个存储库 helm-local、helm-remote、helm 对​​吗?
    猜你喜欢
    • 2019-03-15
    • 1970-01-01
    • 1970-01-01
    • 2020-08-26
    • 2020-06-12
    • 2021-06-13
    • 1970-01-01
    • 1970-01-01
    • 2020-04-14
    相关资源
    最近更新 更多