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-skipendnotes=true style=display:none href=https://raw.githubusercontent.com/istio/istio/release-1.24/samples/health-check/liveness-command.yaml>Zip</a><pre><code class=language-bash data-