
    hosts:
    - &#34;*&#34;
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
  name: httpbin
spec:
  hosts:
  - &#34;*&#34;
  gateways:
  - httpbin-gateway
  http:
  - match:
    - uri:
        prefix: /headers
    route:
    - destination:
        port:
          number: 8000
        host: httpbin
EOF
</code></pre><p>此时，便可以在浏览器中输入包含 <code>$INGRESS_HOST:$INGRESS_PORT</code> 的 URL。譬如，输入<code>http://$INGRESS_HOST:$INGRESS_PORT/headers</c