    name: https
      protocol: HTTPS
    tls:
      mode: SIMPLE
      credentialName: &#34;httpbin-credential&#34; # must be the same as secret
    hosts:
    - &#34;httpbin.example.com&#34;
EOF
</code></pre></li><li><p>配置 Gateway 的 Ingress 流量路由，并配置对应的 <code>VirtualService</code>：</p><pre><code class=language-bash data-expandlinks=true data-repo=istio>$ cat &lt;&lt;EOF | kubectl apply -f -
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
  name: httpbin