小编ode*_*cca的帖子

Helm - 无法从私有 Github 存储库安装依赖项

我正在尝试从我使用 部署的私有存储库安装软件包chart-releases,但我无法做到。

这是我所做的:

  1. 我创建了一个新的私有存储库,向其中添加了一个示例图表并运行了以下命令:
helm package charts/* --destination .deploy
cr upload -o odelucca -r helm-charts -p .deploy -t $MY_TOKEN
Run Code Online (Sandbox Code Playgroud)
  1. 我已经index.yaml使用以下命令创建了:
cr index --config .cr.yaml -t $MY_TOKEN
# My .cr.yaml file:
# owner: odelucca
# git-repo: helm-charts
# package-path: .deploy
# index-path: index.yaml
# charts-repo: https://github.com/odelucca/helm-charts/
Run Code Online (Sandbox Code Playgroud)
  1. 我已经提交index.yaml到 repo

  2. 我使用以下命令添加了远程 helm repo:

helm repo add helm-charts https://raw.githubusercontent.com/odelucca/helm-charts/master --username $MY_EMAIL --password $MY_TOKEN
Run Code Online (Sandbox Code Playgroud)
  1. 添加了 repo,然后我将以下依赖项添加到本地图表:
dependencies:
- name: serverless-common
  version: 1.0.0
  repository: "@helm-charts"
Run Code Online (Sandbox Code Playgroud)
  1. 现在,我尝试运行以下命令:
helm dep update
Run Code Online (Sandbox Code Playgroud)
  1. 我收到以下错误: …

kubernetes-helm

5
推荐指数
1
解决办法
1357
查看次数

标签 统计

kubernetes-helm ×1