google-cloud-platform - 使用 GCR 作为 Helm 存储库
问题描述
是否可以将 Google Container Registry 用作 Helm 存储库?我成功地将图表推送到 GCR,但是当我尝试使用 helm 添加 repo 时,出现错误”
Error: looks like "https://gcr.io/********" is not a valid chart repository or cannot be reached: error converting YAML to JSON: yaml: mapping values are not allowed in this context
这是值得期待的吗?我在做
helm repo add reponame https://gcr.io/***** --username user-name --password *****
解决方案
我自己试过这个 - 但它没有用。相反,我发现了这个插件:
https://github.com/hayorov/helm-gcs
这允许您将 GCS 用作 helm 存储库。快速设置/使用:
$ helm plugin install https://github.com/hayorov/helm-gcs.git
# Init a new repository
$ helm gcs init gs://bucket/path
# Add your repository to Helm
$ helm repo add repo-name gs://bucket/path
# Push a chart to your repository
$ helm gcs push chart.tar.gz repo-name
# Update Helm cache
$ helm repo update
# Fetch the chart
$ helm fetch repo-name/chart
# Remove the chart
$ helm gcs rm chart repo-name
推荐阅读
- typescript - 需要打字稿承诺帮助
- android - 如何从移动应用程序连接redis服务器以从移动应用程序对redis数据库执行不同的操作
- mysql - 使用限制和偏移量的 MySQL 查询不返回预期的有序结果
- angular - 安装后 ajenti Web 面板无法加载角度
- javascript - 当我调制一个 JSP 文件时,我可以像这样包含它的 javascript 函数吗?
- javascript - Vue js props 没有数据
- python-3.x - 从请求的数据流 django 读取后,您无法访问正文
- excel - 考虑到“13:12:00”作为日期,我如何解决 Excel?
- node.js - 更新 Jest 测试库后出现意外的令牌 (SyntaxError)
- ruby - 为什么 ruby-filemagic-0.7.2 完成安装后会抛出此消息