我想使用Helm和Gitlab一起将我的服务部署到OpenShift。
我在OpenShift中部署了一个Gitlab。
我已经在tiller命名空间下的Openshift中安装了Tiller,并且正在使用docker映像docker.greater.com.au/platform/images/dtzar/helm-kubectl:latest
我的系统也支持一个代理,我将无法通过它。
作为我的Gitlab CI构建步骤的一部分,我有以下内容:
$ 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,服务器正在响应一个代理授权所需的错误。
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服务器。
发布于 2019-01-23 16:17:38
您可以在选项-o --stable-repo-url url中定义希望使用的稳定存储库。
示例:helm init --client-only --stable-repo-url https://path.to.my.repo
你可以找到更多的信息这里
https://stackoverflow.com/questions/54190531
复制相似问题