From 3be56a60998ee4b12950d98a80be96e5f9e31198 Mon Sep 17 00:00:00 2001 From: JJ Asghar Date: Tue, 17 Nov 2020 13:57:33 -0600 Subject: [PATCH] Update health-checks.md Looks like the formatting for ```shell isn't outputting correctly on the page. Signed-off-by: JJ Asghar --- .../docs/reference/using-api/health-checks.md | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/content/en/docs/reference/using-api/health-checks.md b/content/en/docs/reference/using-api/health-checks.md index e0afae8aa8..2c315505db 100644 --- a/content/en/docs/reference/using-api/health-checks.md +++ b/content/en/docs/reference/using-api/health-checks.md @@ -27,15 +27,15 @@ The following examples will show how you can interact with the health API endpoi For all endpoints you can use the `verbose` parameter to print out the checks and their status. This can be useful for a human operator to debug the current status of the Api server, it is not intended to be consumed by a machine: - ```shell - curl -k https://localhost:6443/livez?verbose - ``` +```shell +curl -k https://localhost:6443/livez?verbose +``` or from a remote host with authentication: - ```shell - kubectl get --raw='/readyz?verbose' - ``` +```shell +kubectl get --raw='/readyz?verbose' +``` The output will look like this: @@ -62,9 +62,9 @@ The output will look like this: The Kubernetes API server also supports to exclude specific checks. The query parameters can also be combined like in this example: - ```shell - curl -k 'https://localhost:6443/readyz?verbose&exclude=etcd' - ``` +```shell +curl -k 'https://localhost:6443/readyz?verbose&exclude=etcd' +``` The output show that the `etcd` check is excluded: @@ -98,6 +98,6 @@ The schema for the individual health checks is `/livez/` where The `` path can be discovered using the `verbose` flag from above and take the path between `[+]` and `ok`. These individual health checks should not be consumed by machines but can be helpful for a human operator to debug a system: - ```shell - curl -k https://localhost:6443/livez/etcd - ``` +```shell +curl -k https://localhost:6443/livez/etcd +```