kubernetes - 无法使用 Helm Push Artifactory 插件将 helm 包存档推送到工件
问题描述
我一直在尝试将由helm package命令创建的工件发布到工件。我通过安装helm client在本地Windows 10笔记本电脑上设置环境。我可以通过helm package命令创建图表档案。创建包后,我尝试将包发布到工件存储库(本地工件 pro 实例)。
Helm 要求通过helm repo add 命令将需要推送包的存储库添加为 repo 。但在执行helm repo add命令之前,应该在创建 repo 时将 artifactory repo 配置为Helm Chart Repository。在成功执行helm repo add后,我尝试将存档推送到该工件位置。 https://github.com/belitre/helm-push-artifactory-plugin是我用来将存档发布到 artifactory 的插件。但是,一旦我执行命令helm push-artifactory,我就会不断出错:
Error: 400: could not properly parse response JSON:
HTTP Status 400 – Bad Request
Type Status Report
Message Invalid URI
Description The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).
请指导。如果我错过了任何重要的细节,请告诉我。
编辑 1:开始
添加 repo 的命令:
helm repo add helm-chart-artifcatory-repo http://localhost:8081/artifactory/helm-chart-artifactory-repo/ --username myadminusername --password myadminpass
"helm-chart-artifcatory-repo" has been added to your repositories
推送到工件的命令:
helm push-artifactory xyz-demofile-0.1.1.tgz http://localhost:8081/artifactory/helm-chart-artifactory-repo --username myadminusername --password myadminpass
编辑 1:结束
解决方案
推荐阅读
- xamarin.forms - 在 Xamarin.Forms 中创建 UI 元素
- debian - Artifactory Jfrog 中的 Debian Bionic 错误
- python - Django:forms.ChoiceField 在新页面加载后不刷新
- php - 匹配过滤器必须是 PHP 中具有 mongo 聚合的对象中的表达式
- python - 在 for 循环中连接 numpy 数组
- prestashop-1.7 - Prestashop 1.7 在产品列表中显示横幅
- node.js - 我可以安装 node_modules 一次,并且需要所有时间吗
- python - 使用 pandas 抓取 HTML:它可以用来抓取网页中的表格吗?
- laravel - 如何将用户帐户验证码保存到 Laravel 中的文本文件?
- docker - 如何使用卷在 dockerized DynamoDB 中持久化数据