<p>I am new in K8s world and I am using helm to install the stable/mysql template then I would like to test it. </p>

<p>I run below to spawn a new ubuntu container as mysql client. However the apt-get update stuck at "Waiting for headers" always.</p>

<pre><code>kubectl run -i --tty ubuntu --image=ubuntu:16.04 --restart=Never -- bash -il

root@ubuntu:/# apt-get update
0% [Waiting for headers] [Waiting for headers]
</code></pre>

<p>I think it is network issue, but I am not able to install any tool to debug as the apt-get not work.</p>

<p>I tried couple of ways like modifying the /etc/resolv.conf, but it seems it doesn't help.</p>

<p>Anyone can share me some lights about how to proceed?</p>

<p>Thanks!</p>

Martin Peng
<p>Follow this to setup the proxy will make it work. <a href="https://askubuntu.com/questions/109673/how-to-use-apt-get-via-http-proxy-like-this">https://askubuntu.com/questions/109673/how-to-use-apt-get-via-http-proxy-like-this</a></p>

<p>Add below content to file /etc/apt/apt.conf.</p>

<pre><code>Acquire::http::Proxy "http://proxy.server.port:8080";
</code></pre>
