 HTTPS
    tls:
      mode: SIMPLE
      credentialName: &#34;helloworld-credential&#34;
    hosts:
    - &#34;helloworld-v1.example.com&#34;
EOF
</code></pre></li><li><p>配置 Gateway 的流量路由，配置 <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: helloworld-v1
spec:
  hosts:
  - &#34;helloworld-v1.example.com&#34;
  gateways