th-check/liveness-command.yaml@)
</code></pre></div><p>要确认存活探针是否正常工作，请检查示例 Pod 的状态以验证它是否正在运行。</p><pre><code class=language-bash data-expandlinks=true data-repo=istio>$ kubectl -n istio-io-health get pod
NAME                             READY     STATUS    RESTARTS   AGE
liveness-6857c8775f-zdv9r        2/2       Running   0           4m
</code></pre><h2 id=liveness-and-readiness-probes-using-the-http-request-approach>使用 HTTP、TCP 和 gRP