diff --git a/content/en/docs/ops/configuration/mesh/app-health-check/index.md b/content/en/docs/ops/configuration/mesh/app-health-check/index.md index 026c6bbd3d..253d508d79 100644 --- a/content/en/docs/ops/configuration/mesh/app-health-check/index.md +++ b/content/en/docs/ops/configuration/mesh/app-health-check/index.md @@ -17,8 +17,9 @@ test: yes [Kubernetes liveness and readiness probes](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/) describes several ways to configure liveness and readiness probes including: -1. Command -1. HTTP request +1. [Command](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#define-a-liveness-command) +1. [HTTP request](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#define-a-liveness-http-request) +1. [TCP Probes](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#define-a-tcp-liveness-probe) The command approach works with Istio regardless of whether or not mutual TLS is enabled. @@ -86,6 +87,7 @@ to disable the probe rewrite option. Make sure you add the annotation to the anywhere else (for example, on an enclosing deployment resource). {{< text yaml >}} +kubectl apply -f - <}} This approach allows you to disable the health check probe rewrite gradually on individual deployments, @@ -128,6 +131,40 @@ to disable the probe rewrite globally. **Alternatively**, update the configurati $ kubectl get cm istio-sidecar-injector -n istio-system -o yaml | sed -e 's/"rewriteAppHTTPProbe": true/"rewriteAppHTTPProbe": false/' | kubectl apply -f - {{< /text >}} +## Liveness probes using the TCP socket + +A third type of liveness probe uses a TCP socket. + +{{< text yaml >}} +kubectl apply -f - <}} + ## Cleanup Remove the namespace used for the examples: diff --git a/content/en/docs/ops/configuration/mesh/app-health-check/snips.sh b/content/en/docs/ops/configuration/mesh/app-health-check/snips.sh index a52d65c381..92f8a6a1fd 100644 --- a/content/en/docs/ops/configuration/mesh/app-health-check/snips.sh +++ b/content/en/docs/ops/configuration/mesh/app-health-check/snips.sh @@ -51,6 +51,7 @@ liveness-6857c8775f-zdv9r 2/2 Running 0 4m ENDSNIP ! read -r -d '' snip_disable_the_http_probe_rewrite_for_a_pod_1 <<\ENDSNIP +kubectl apply -f - <