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

时间:2020-04-27 21:23:36

标签: kubernetes-helm

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

这是我所做的:

  1. 我创建了一个新的私有存储库,向其中添加了示例图表,并运行了以下命令:
helm package charts/* --destination .deploy
cr upload -o odelucca -r helm-charts -p .deploy -t $MY_TOKEN
  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/
  1. 我已将index.yaml提交到仓库

  2. 我使用以下命令添加了远程头盔仓库:

helm repo add helm-charts https://raw.githubusercontent.com/odelucca/helm-charts/master --username $MY_EMAIL --password $MY_TOKEN
  1. 添加了仓库,然后将以下依赖项添加到本地图表中:
dependencies:
- name: serverless-common
  version: 1.0.0
  repository: "@helm-charts"
  1. 现在,我尝试运行以下命令:
helm dep update
  1. 我遇到以下错误:
Hang tight while we grab the latest from your chart repositories...
...Unable to get an update from the "local" chart repository (http://127.0.0.1:8879/charts):
        Get http://127.0.0.1:8879/charts/index.yaml: dial tcp 127.0.0.1:8879: connect: connection refused
...Successfully got an update from the "helm-charts" chart repository
...Successfully got an update from the "stable" chart repository
Update Complete.
Saving 1 charts
Downloading serverless-common from repo https://raw.githubusercontent.com/odelucca/helm-charts/master
Save error occurred:  could not download https://github.com/odelucca/helm-charts/releases/download/serverless-common-1.0.0/serverless-common-1.0.0.tgz: Failed to fetch https://github.com/odelucca/helm-charts/releases/download/serverless-common-1.0.0/serverless-common-1.0.0.tgz : 404 Not Found
Deleting newly downloaded charts, restoring pre-update state
Error: could not download https://github.com/odelucca/helm-charts/releases/download/serverless-common-1.0.0/serverless-common-1.0.0.tgz: Failed to fetch https://github.com/odelucca/helm-charts/releases/download/serverless-common-1.0.0/serverless-common-1.0.0.tgz : 404 Not Found

有人可以帮助我吗?我尝试了很多不同的方法,但是都没有解决方法

0 个答案:

没有答案