# Kubernetes installation behind a Proxy

**URL:** <https://forums.suse.com/t/kubernetes-installation-behind-a-proxy/6892>\
**Category:** General\
**Created:** [July 18, 2017, 12:06pm UTC](https://forums.suse.com/t/kubernetes-installation-behind-a-proxy/6892 "2017-07-18T12:06:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luc\_Evers](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/luc_evers/32/2745_2.png) [@Luc\_Evers](https://forums.suse.com/u/Luc_Evers)\
**Post date:** [July 18, 2017, 12:06pm UTC](https://forums.suse.com/t/kubernetes-installation-behind-a-proxy/6892/1 "2017-07-18T12:06:18Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![meggar](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/meggar/32/2853_2.png) [@meggar](https://forums.suse.com/u/meggar)\
**Post date:** [July 20, 2017, 4:08am UTC](https://forums.suse.com/t/kubernetes-installation-behind-a-proxy/6892/2 "2017-07-20T04:08:44Z")

</div>

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”

---

<div class="post-metadata">

**Author:** ![Luc\_Evers](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/luc_evers/32/2745_2.png) [@Luc\_Evers](https://forums.suse.com/u/Luc_Evers)\
**Post date:** [July 21, 2017, 6:35am UTC](https://forums.suse.com/t/kubernetes-installation-behind-a-proxy/6892/3 "2017-07-21T06:35:19Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Luc\_Evers](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/luc_evers/32/2745_2.png) [@Luc\_Evers](https://forums.suse.com/u/Luc_Evers)\
**Post date:** [July 21, 2017, 6:36am UTC](https://forums.suse.com/t/kubernetes-installation-behind-a-proxy/6892/4 "2017-07-21T06:36:19Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Luc\_Evers](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/luc_evers/32/2745_2.png) [@Luc\_Evers](https://forums.suse.com/u/Luc_Evers)\
**Post date:** [July 21, 2017, 4:00pm UTC](https://forums.suse.com/t/kubernetes-installation-behind-a-proxy/6892/5 "2017-07-21T16:00:45Z")

</div>

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