title: Which port do I need to open to allow pip to connect (in a docker running via kubernetes)?
body: <p>I want to install additional python libraries in a running container via <strong>pip</strong>. The reason why I use this way instead of building a container which have already be installed this library, is that my docker image needs to be small.</p>
  
  <p>I have tried to open ports 8080, 3128 and 443. The yaml entries are as follows:</p>
  
  <pre><code>ports: 
  - containerPort: 8080 
    name: http 
    protocol: TCP
  - containerPort: 3128
    name: http 
    protocol: TCP
  - containerPort: 443
    name: http 
    protocol: TCP
  </code></pre>
  
  <p>However, pip is not able to connect with the pypi server.</p>
  
  <p>What port do I have to add? Or did I miss anything else? </p>