<p>The error below is triggered when executing <code>kubectl -n gitlab-managed-apps logs install-helm</code>. </p>

<p>I've tried regenerating the certificates, and bypassing the certificate check. Somehow it is using my internal certificate instead of the certificate of the source.</p>

<pre class="lang-sh prettyprint-override"><code>root@dev # kubectl -n gitlab-managed-apps logs install-helm
+ helm init --tiller-tls --tiller-tls-verify --tls-ca-cert /data/helm/helm/config/ca.pem --tiller-tls-cert /data/helm/helm/config/cert.pem --tiller-tls-key /data/helm/helm/config/key.pem
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: x509: certificate is valid for *.tdebv.nl, not kubernetes-charts.storage.googleapis.com
</code></pre>

<p>What might be the issue here? Screenshot below is the error Gitlab is giving me (not much information either).</p>

<p><a href="https://i.stack.imgur.com/d0M6f.png" rel="noreferrer"><img src="https://i.stack.imgur.com/d0M6f.png" alt="enter image description here"></a></p>

<p>After having the same issue I finally found the solution for it:</p>

<p><strong>In the <code>/etc/resolv.conf</code> file on your Master and Worker nodes you have to search and remove the <code>search XYZ.com</code> entry.</strong></p>

<p>If you are using Jelastic you have to remove this entry every time after a restart. It gets added by Jelastic automatically. I already contacted them so maybe they will fix it soon.</p>
