<p>I want to use Helm with Gitlab to deploy my services to OpenShift.</p>

<p>I have a Gitlab Runner deployed in OpenShift. </p>

<p>I already have Tiller installed in Openshift under the <code>tiller</code> namespace and am using the docker image <code>docker.greater.com.au/platform/images/dtzar/helm-kubectl:latest</code></p>

<p>My system is also behind a proxy which I won't be able to get past.</p>

<p>As part of one of my Gitlab CI build steps I have the following:</p>

<pre><code>$ 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
</code></pre>

<p>My main question is I am wondering if it's possible to disable Helm from trying to add <code>https://kubernetes-charts.storage.googleapis.com</code> as a repostiory as part of <code>helm init</code>?</p>

<p>It might be worth noting that I do not know if helm init --client-only is a required step in using helm with this setup.</p>

<p>I have also tried a simple <code>helm version</code> and the server is responding with a Proxy Authorization Required error.</p>

<pre><code>Client: &amp;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
</code></pre>

<p>I've removed the IP address but it's trying to resolve the Tiller server from the wrong IP address when running this <code>helm version</code> command.</p>

L. Cooper
<p>You can define which stable repository you would like to use with option <code>-o --stable-repo-url url</code>.</p>

<p>Example: <code>helm init --client-only --stable-repo-url https://path.to.my.repo</code></p>

<p>You could found more info <a href="https://docs.helm.sh/helm/#helm-init" rel="noreferrer">here</a></p>
