首页 > 解决方案 > helm push to artifactory 总是抛出 404 错误,找不到 /api/artifactory/helm/charts

问题描述

我正在尝试配置我的 CI/CL 以将掌舵图推送到 artifacotry(JFrog)。我正在使用 helm push 插件。但是每当我尝试推送时,我总是会收到 404 /api/artifactory/helm/charts not found 错误的响应。

我添加了chartmuseum repo,安装了chartmuseum客户端和helm-push插件

这是我调用的 Shell 脚本

helm repo add chartmuseum http://artifactory.xxxxxxx.com/artifactory/helm
curl -LO https://s3.amazonaws.com/chartmuseum/release/latest/bin/linux/amd64/chartmuseum
chmod +x ./chartmuseum
mv ./chartmuseum /usr/local/bin
echo "Starting Helm-Push Plugin Installation"
helm plugin install https://github.com/chartmuseum/helm-push
helm push -f mysql/ chartmuseum

我得到以下回复:

Error: 404: could not properly parse response JSON: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /api/artifactory/helm/charts was not found on this server.</p>
</body></html>

错误:插件“推送”退出并出现错误

标签: kubernetes-helm

解决方案


JFrog 不支持图表博物馆。所以这失败了。


推荐阅读