Add feature state for individual health checks

This commit is contained in:
Johannes M. Scheuermann 2020-07-21 10:24:40 +02:00
parent 8308aabb86
commit f1588c03f3
1 changed files with 10 additions and 0 deletions

View File

@ -31,6 +31,12 @@ This can be useful for a human operator to debug the current status of the Api s
curl -k https://localhost:6443/livez?verbose curl -k https://localhost:6443/livez?verbose
``` ```
or from a remote host with authentication:
```shell
kubectl get --raw='/readyz?verbose'
```
The output will look like this: The output will look like this:
[+]ping ok [+]ping ok
@ -83,6 +89,10 @@ The output show that the `etcd` check is excluded:
[+]shutdown ok [+]shutdown ok
healthz check passed healthz check passed
## Individual health checks
{{< feature-state state="alpha" >}}
Each individual health check exposes an http endpoint and could can be checked individually. Each individual health check exposes an http endpoint and could can be checked individually.
The schema for the individual health checks is `/livez/<healthcheck-name>` where `livez` and `readyz` and be used to indicate if you want to check thee liveness or the readiness of the API server. The schema for the individual health checks is `/livez/<healthcheck-name>` where `livez` and `readyz` and be used to indicate if you want to check thee liveness or the readiness of the API server.
The `<healthcheck-name>` path can be discovered using the `verbose` flag from above and take the path between `[+]` and `ok`. The `<healthcheck-name>` path can be discovered using the `verbose` flag from above and take the path between `[+]` and `ok`.