-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DCA] Introduce use_component_status for kube_apiserver check (#8577)
Previously, the kube_apiserver_controlplane used ComponentStatus to report control plane components' liveness. This has been deprecated in [Kubernetes 1.19](kubernetes/kubernetes#93570) and will be removed at some point in the future. To remediate that, we're following the recommendation in the deprecation notice to use the API Server's health endpoint instead. This change also removes the `component` tag in this service check, as it no longer reports separate components, and just the API server itself. Per-component service checks will eventually be available through the kube_controller_manager and kube_scheduler checks themselves.
- Loading branch information
1 parent
305341b
commit 94d950e
Showing
3 changed files
with
71 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
releasenotes-dca/notes/kube-apiserver-controlplane-check-dbc4322c05d65dcf.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
features: | ||
- | | ||
Introduce a `use_component_status` config option to the | ||
kubernetes_apiserver check. When set to false, it no longer uses the | ||
`ComponentStatus` object (deprecated since Kubernetes 1.19) for the | ||
Kubernetes API Server Control Plane health checks, and instead replaces it | ||
with a single health check directly to the API Server. | ||
enhancements: | ||
- | | ||
Report an error message if the kube_apiserver_controlplane.up service | ||
check is critical. |