<p>Behind the enterprise proxy,</p>

<p>what is the proper setting for kubernetes (and docker)?</p>

<ol>
<li>when set the http_proxy, https_proxy, no_proxy</li>
</ol>

<p><code>export http_proxy="http://1.2.3.4:8080"</code></p>

<p>or</p>

<p><code>export http_proxy=http://1.2.3.4:8080</code></p>

<p>or</p>

<p><code>export http_proxy=1.2.3.4:8080</code></p>

<ol start="2">
<li><p>Should I set capital environment variable like HTTP_PROXY ?</p></li>
<li><p>When I set no_proxy,</p></li>
</ol>

<p><code>export no_proxy=10.0.0.1,10.0.0.2,10.0.0.3</code></p>

<p>(all the kubernetes master and nodes )</p>

<p>or</p>

<p><code>export no_proxy=10.0.0.*</code></p>

<ol start="4">
<li><p>Should I setting below file ?</p>

<p>$ vi /etc/systemd/system/docker.service.d/http-proxy.conf
[Service]
Environment="HTTP_PROXY=<a href="http://1.2.3.4:8080" rel="nofollow noreferrer">http://1.2.3.4:8080</a>" "HTTPS_PROXY=<a href="http://1.2.3.4:8080" rel="nofollow noreferrer">http://1.2.3.4:8080</a>" "NO_PROXY=127.0.0.1,localhost,10.0.0.1,10.0.0.2,10.0.0.3"</p></li>
</ol>

<p>In this file, applied same rule with above question?</p>

<ol start="5">
<li>any other considerations?</li>
</ol>

<p>Thanks inadvance.</p>

<p>We always include the scheme in our environment variables.</p>

<p>/etc/profile.d/proxy.sh:</p>

<pre><code>#!/bin/bash
export http_proxy=http://&lt;proxy&gt;:3128
export https_proxy=$http_proxy
export no_proxy=169.254.169.254,localhost,127.0.0.1
export HTTP_PROXY=$http_proxy
export HTTPS_PROXY=$https_proxy
export NO_PROXY=$no_proxy
</code></pre>

<p>/etc/systemd/system/docker.service.d/proxy.conf:</p>

<pre><code>[Service]
Environment="HTTPS_PROXY=https://&lt;proxy&gt;:3128/" "HTTP_PROXY=http://&lt;proxy&gt;:3128/"
</code></pre>
