Kubernetes installation behind a Proxy

Installing Kubernetes

  1. Without Proxy server there are no problems. Kubernetes rancher/k8s:v1.5.4-rancher1-4.
  2. Behind a proxy server I’m missing the Default Environment Templates.
    So I can only Add a Template with the new Kubernetes 1.6 which is not working.
    • Kubernetes installation Blocks on Starting services (2 of 12)
      We don’t see blocking domains in the Proxy!

The proxy is configured in the Ubuntu server (/etc/environments) + for docker systemd config file.

What can be the problem?

I think you should set the proxy via Docker daemon,

$ cat /etc/systemd/system/docker.service.d/http-proxy.conf
[Service]
Environment="HTTP_PROXY=http://172.29.1.8:3128/"
Environment="HTTPS_PROXY=http://172.29.1.8:3128/"
Environment=“NO_PROXY=localhost,127.0.0.1”

Right
If I start the proxy configuration via docker:

sudo docker run -d
–restart=unless-stopped
-p 8080:8080
-e http_proxy=http://proxy.company.com:3128
-e https_proxy=http://proxy.company.com:3128
-e HTTP_PROXY=http://proxy.company.com:3128
-e HTTPS_PROXY=http://proxy.company.com:3128
-e no_proxy=“localhost,127.0.0.1,.company.com,.company.local”
-e NO_PROXY=“localhost,127.0.0.1,.company.com,.company.local” \

Then I have problems to login, adding

Sorry interrupted:
Then I have problems to login, adding a user access. The user is not accepted !
Login is not possible.

The problem is solved in release 1.6.5
Link: https://github.com/rancher/rancher/releases