kubernetes-helm - 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>
错误:插件“推送”退出并出现错误
解决方案
JFrog 不支持图表博物馆。所以这失败了。
推荐阅读
- haskell - Haskell 如何知道数据类型声明是变量还是命名类型?
- php - PHP:导入具有空单元格/列的 CSV 文件时,列数不匹配
- python - Pandas:确定 2 个时间序列相交的位置和方向
- php - 上传文件,并将文件名插入数据库
- sql-server - Streamreader 循环读取多个日志文件夹 vb.net
- c# - 下载文件损坏,要修复
- xml - 如果子节点包含此文本,则提取属性值
- html - 如何在移动视图中的表格中的单元格元素之间具有相等的间距?
- javascript - 如何从javascript中的选择选项中获取多个值?
- powershell - 批处理文件中的循环迭代缓慢