a-expandlinks=true data-repo=istio>$ kubectl create ns istio-io-health
</code></pre><p>要配置 <code>STRICT</code> 双向 TLS，请运行：</p><pre><code class=language-bash data-expandlinks=true data-repo=istio>$ kubectl apply -f - &lt;&lt;EOF
apiVersion: security.istio.io/v1
kind: PeerAuthentication
metadata:
  name: &#34;default&#34;
  namespace: &#34;istio-io-health&#34;
spec:
  mtls:
    mode: STRICT
EOF
</code></pre><p>接下来，运行以下命令来部署示例服务：</p><div><a data-skipendno