Skip to content

Commit

Permalink
fixup! fixup! fixup! enhancement: add livez endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
rexagod committed Jun 24, 2024
1 parent c46e08e commit f5fed5b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,14 @@ The following probes are available, and follow the [Kubernetes best practices](h
* `livenessProbe`: Checks if the application is not affected by an outage, and is able to access the Kube API by querying the cluster's `/livez` endpoint.
* `readinessProbe`: Checks if the application is ready to serve metrics by querying its own telemetry metrics.

#### Healthcheck Endpoints

The following healthcheck endpoints are available, some of which are used to determine the result of the aforementioned probes:

* `/livez`: Returns a 200 status code if the application is not affected by an outage. This is used to determine the result of the liveness probe.
* `/metrics`: Returns a 200 status code if the application is able to serve metrics. While this is available for both ports, only self metrics are used to determine the result of the readiness probe.
* `/healthz`: Returns a 200 status code if the application is running.

#### Limited privileges environment

If you want to run kube-state-metrics in an environment where you don't have cluster-reader role, you can:
Expand Down
8 changes: 8 additions & 0 deletions README.md.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,14 @@ The following probes are available, and follow the [Kubernetes best practices](h
* `livenessProbe`: Checks if the application is not affected by an outage, and is able to access the Kube API by querying the cluster's `/livez` endpoint.
* `readinessProbe`: Checks if the application is ready to serve metrics by querying its own telemetry metrics.

#### Healthcheck Endpoints

The following healthcheck endpoints are available, some of which are used to determine the result of the aforementioned probes:

* `/livez`: Returns a 200 status code if the application is not affected by an outage. This is used to determine the result of the liveness probe.
* `/metrics`: Returns a 200 status code if the application is able to serve metrics. While this is available for both ports, only self metrics are used to determine the result of the readiness probe.
* `/healthz`: Returns a 200 status code if the application is running.

#### Limited privileges environment

If you want to run kube-state-metrics in an environment where you don't have cluster-reader role, you can:
Expand Down

0 comments on commit f5fed5b

Please sign in to comment.