Hi Yatindra:

As talked afternoon , here is the way to run helm install behind proxy .

 

    https_proxy=https://{your proxy}:{port}  no_proxy=192.168.206.1 helm repo update

https_proxy=https://{your proxy}:{port}  no_proxy=192.168.206.1 helm install stable/minio

 

192.168.206.1 is the cluster gateway ip , which is usually not need change.

 

Thanks.

BR
Austin Sun.

 

 

From: Shashi, Yatindra <yatindra.shashi@intel.com>
Sent: Saturday, May 9, 2020 12:25 AM
To: starlingx-discuss@lists.starlingx.io
Subject: [Starlingx-discuss] Helm Install while having Proxy NW

 

Hi Team,

 

I tried to install some software from the Helm stable repo behind the proxy but receive error as below, its always with proxy, is there some solutions. I think helm is not by default exposed through the proxy only Kubernetes is which makes it connection timeout:

 

controller-0:~/.kube$ helm install stable/minio

Error: failed to download "stable/minio" (hint: running `helm repo update` may help)

controller-0:~/.kube$ helm repo update

Hang tight while we grab the latest from your chart repositories...

...Skip local chart repository

...Successfully got an update from the "stx-platform" chart repository

...Successfully got an update from the "starlingx" chart repository

...Unable to get an update from the "stable" chart repository (https://kubernetes-charts.storage.googleapis.com):

        Get https://kubernetes-charts.storage.googleapis.com/index.yaml: dial tcp 172.217.21.80:443: connect: connection timed out

 

 

 

 

But when I export proxy manually in the console and tried, it works

controller-0:~/oisp/platform-launcher/MinIO$ helm repo update

Hang tight while we grab the latest from your chart repositories...

...Skip local chart repository

...Successfully got an update from the "stx-platform" chart repository

...Successfully got an update from the "starlingx" chart repository

...Successfully got an update from the "ingress-nginx" chart repository

...Successfully got an update from the "stable" chart repository

Update Complete. Happy Helming!

 

----But then in the same console it doesnot allow to install

 

controller-0:~/oisp/platform-launcher/MinIO$ helm install stable/minio

Error: Get https://192.168.206.1:6443/api/v1/namespaces/kube-system/pods?labelSelector=app%3Dhelm%2Cname%3Dtiller: net/http: TLS handshake timeout

 

 

Mit freundlichen Grüßen/ with best regards,

Yatindra Shashi

  IoTG DE- Intel Corporation

   Munich, Germany

 

 

 

Intel Deutschland GmbH
Registered Address: Am Campeon 10-12, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de
Managing Directors: Christin Eisenschmid, Gary Kershaw
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928