title: How do I access the Kubernetes api from within a pod container?
body: <p>I used to be able to curl </p>
  
  <pre><code>https://$KUBERNETES_SERVICE_HOST:$KUBERNETES_PORT_443_TCP_PORT/api/v1beta3/namespaces/default/
  </code></pre>
  
  <p>as my base URL, but in kubernetes 0.18.0 it gives me "unauthorized". The strange thing is that if I used the external IP address of the API machine (<code>http://172.17.8.101:8080/api/v1beta3/namespaces/default/</code>), it works just fine.</p>