<p>I set up istio from rancher catalog app,</p>

<p>after set namespace with istio enabled and redeploy workload,</p>

<p>requests google inside container get 404 error.</p>

<p>here is code example inside container with python3. </p>

<pre><code>
In [1]: import requests

In [2]: requests.get('http://google.com')

Out[2]:&lt;Response [404]&gt;

</code></pre>

<p>what is the best practice of requesting outside host with istio injected?</p>

curtank
<p>Quote from <a href="https://istio.io/docs/examples/advanced-egress/egress-gateway/" rel="nofollow noreferrer">istio document</a>:</p>

<blockquote>
  <p>A quick reminder: by default, Istio-enabled applications are unable to
  access URLs outside the cluster. To enable such access, a service
  entry for the external service must be defined, or, alternatively,
  direct access to external services must be configured.</p>
</blockquote>
