s-http-same-port.yaml>liveness-http-same-port 样例</a>。</p><p>首先为此样例应用创建一个命名空间并打好标签：</p><pre><code class=language-bash data-expandlinks=true data-repo=istio>$ kubectl create namespace istio-io-health-rewrite
$ kubectl label namespace istio-io-health-rewrite istio-injection=enabled
</code></pre><p>然后部署样例应用程序：</p><pre><code class=language-bash data-expandlinks=true data-outputis=yaml data-repo=istio>$ kubectl apply -f - &lt;&lt;EOF
apiVersi