ide></div><pre><code class=language-yaml data-expandlinks=true data-repo=istio>apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
  name: &#34;httpbin-egress&#34;
  namespace: &#34;httpbin&#34;
spec:
  hosts:
  - &#34;&lt;my-proxied-service-hostname&gt;&#34;
  gateways:
  - mesh
  - &#34;istio-system/my-ingressgateway&#34;
  - &#34;httpbin/httpbin-egress&#34;
  http:
  - match:
    - gateways:
      - &#34;istio-system/my-ingressgateway&#34;
      - mesh
      uri:
        prefix: &#34;