首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Helm防止在helm init上添加默认的图表回购。

Helm防止在helm init上添加默认的图表回购。
EN

Stack Overflow用户
提问于 2019-01-14 23:06:44
回答 1查看 4.3K关注 0票数 2

我想使用Helm和Gitlab一起将我的服务部署到OpenShift。

我在OpenShift中部署了一个Gitlab。

我已经在tiller命名空间下的Openshift中安装了Tiller,并且正在使用docker映像docker.greater.com.au/platform/images/dtzar/helm-kubectl:latest

我的系统也支持一个代理,我将无法通过它。

作为我的Gitlab CI构建步骤的一部分,我有以下内容:

代码语言:javascript
复制
$ helm init --client-only
Creating /root/.helm 
Creating /root/.helm/repository 
Creating /root/.helm/repository/cache 
Creating /root/.helm/repository/local 
Creating /root/.helm/plugins 
Creating /root/.helm/starters 
Creating /root/.helm/cache/archive 
Creating /root/.helm/repository/repositories.yaml 
Adding stable repo with URL: https://kubernetes-charts.storage.googleapis.com 
Error: Looks like "https://kubernetes-charts.storage.googleapis.com" is not a valid chart repository or cannot be reached: Get https://kubernetes-charts.storage.googleapis.com/index.yaml: Proxy Authorization Required

我的主要问题是,我想知道是否可以禁用Helm尝试将https://kubernetes-charts.storage.googleapis.com作为helm init的一部分添加到存储库中

值得注意的是,我不知道helm init --客户端--是否是在此设置中使用helm所必需的步骤。

我还尝试了一个简单的helm version,服务器正在响应一个代理授权所需的错误。

代码语言:javascript
复制
Client: &version.Version{SemVer:"v2.12.1", 
GitCommit:"02a47c7249b1fc6d8fd3b94e6b4babf9d818144e", GitTreeState:"clean"}
Error: Get https://---.---.---.---:---/api/v1/namespaces/tiller/pods?labelSelector=app%3Dhelm%2Cname%3Dtiller: Proxy Authorization Required

我已经删除了IP地址,但是在运行这个helm version命令时,它试图从错误的IP地址解析Tiller服务器。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2019-01-23 16:17:38

您可以在选项-o --stable-repo-url url中定义希望使用的稳定存储库。

示例:helm init --client-only --stable-repo-url https://path.to.my.repo

你可以找到更多的信息这里

票数 6
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/54190531

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档