<p>When I make request for this started server: <a href="https://gist.github.com/Rasarts/1180479de480d7e36d6d7aef08babe59#file-server" rel="nofollow noreferrer">https://gist.github.com/Rasarts/1180479de480d7e36d6d7aef08babe59#file-server</a></p>

<p>I get right response:</p>

<pre><code>{
  "args": {}, 
  "headers": {
    "Accept-Encoding": "gzip", 
    "Connection": "close", 
    "Host": "httpbin.org", 
    "User-Agent": "Go-http-client/1.1"
  }, 
  "origin": "", 
  "url": "https://httpbin.org/get"
}
</code></pre>

<p>But when I make request to that server on minikube which was created this way:
<a href="https://gist.github.com/Rasarts/1180479de480d7e36d6d7aef08babe59#file-serve-yaml" rel="nofollow noreferrer">https://gist.github.com/Rasarts/1180479de480d7e36d6d7aef08babe59#file-serve-yaml</a></p>

<p>I get error:</p>

<pre><code>ERROR: Get https://httpbin.org/get: EOF&lt;nil&gt;
</code></pre>

<p>How can I make http requests from kubernetes pod?</p>

Vitaliy Vostrikov
<p>Knative uses <a href="https://istio.io" rel="nofollow noreferrer">Istio</a> and Istio, by default, doesn't allow outbound traffic to external hosts, such as httpbin.org. That's why your request is failing.</p>

<p>Follow <a href="https://github.com/knative/docs/blob/f31d7106a119b453b0dbf208c3b1c0d698af4323/serving/outbound-network-access.md" rel="nofollow noreferrer">this document</a> to learn how to configure Knative (so that it configures Istio correctly) to make outbound connections. Or, you can directly configure the Istio by adding an egress policy: <a href="https://istio.io/docs/tasks/traffic-management/egress/" rel="nofollow noreferrer">https://istio.io/docs/tasks/traffic-management/egress/</a></p>
