rancher / rancher

Complete container management platform
http://rancher.com
Apache License 2.0
23.43k stars 2.97k forks source link

support HTTP_PROXY and HTTPS_PROXY options in rke #13803

Open leodotcloud opened 6 years ago

guanana commented 6 years ago

I’m having problems with the rancher server to make it work through a proxy. I’m unable to pull the catalogs, I get an error with helm.

E0611 12:57:34.281584 1 generic_controller.go:204] CatalogController helm [catalog] failed with : Get https://kubernetes-charts.storage.googleapis.com/index.yaml: dial tcp: lookup kubernetes-charts.storage.googleapis.com on <<Internal DNS>>:53: server misbehaving E0611 13:16:25.942325 1 generic_controller.go:204] CatalogController helm-incubator [catalog] failed with : Get https://kubernetes-charts-incubator.storage.googleapis.com/index.yaml: dial tcp 216.58.204.80:443: i/o timeout <-- If I try to add into /etc/hosts the name just to check

I’m trying to set up the proxy environment settings, curlrc, etc without any luck. I can see how other parts of the server are going through the server to download but not the catalogs.

1528716545.531    424 <<rancher_IP>> TCP_TUNNEL/200 3898 CONNECT kubernetes-charts.storage.googleapis.com:443 - HIER_DIRECT/216.58.204.80 -
1528716545.784   1343 <<rancher_IP>> TCP_TUNNEL/200 58177 CONNECT github.com:443 - HIER_DIRECT/192.30.253.113 -
1528716546.441    964 <<rancher_IP>> TCP_TUNNEL/200 6596 CONNECT git.rancher.io:443 - HIER_DIRECT/52.33.59.17 -
1528716547.181   1234 <<rancher_IP>> TCP_TUNNEL/200 58653 CONNECT github.com:443 - HIER_DIRECT/192.30.253.113 -
1528716547.374    847 <<rancher_IP>> TCP_TUNNEL/200 6596 CONNECT git.rancher.io:443 - HIER_DIRECT/52.33.59.17 -
1528716548.245    954 <<rancher_IP>> TCP_TUNNEL/200 58322 CONNECT github.com:443 - HIER_DIRECT/192.30.253.113 -
1528716548.419    898 <<rancher_IP>> TCP_TUNNEL/200 6596 CONNECT git.rancher.io:443 - HIER_DIRECT/52.33.59.17 -
1528716549.354    954 <<rancher_IP>> TCP_TUNNEL/200 58541 CONNECT github.com:443 - HIER_DIRECT/192.30.253.113 -

Is something I’m missing?

I couldn't add the proxy variables at the startup otherwise it didn't start at all, reading another thread I found out that adding afterwards git config global proxy.https was enough (and it was for most of the server, but not the catalog)

Rancher Server Version: 2.0.2

mristok commented 6 years ago

I have a similar problem trying to connect to catalog resources from behind a corporate proxy.