Skip to content

Commit

Permalink
Enhance KubePodNotReadyControlPlane alert definition (gardener#8361)
Browse files Browse the repository at this point in the history
* Enhance KubePodNotReadyControlPlane alert definition

Prior to this change, this alert could fire when an etcd compaction job was
started, because its status could be e.g. `Completed`, rather than Ready.

Co-authored-by: Istvan Zoltan Ballok <istvan.zoltan.ballok@sap.com>
Co-authored-by: Jeremy Rickards <jeremy.rickards@sap.com>

* Remove curator filter for KubePodNotReadyControlPlane alert

This was apparently a leftover from a CronJob that's no longer in use.

---------

Co-authored-by: Istvan Zoltan Ballok <istvan.zoltan.ballok@sap.com>
  • Loading branch information
rickardsjp and istvanballok authored Aug 18, 2023
1 parent 33d1e0d commit b2d4933
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ groups:
description: Pod {{ $labels.pod }} is not ready for more than 1 hour.
summary: Shoot pod is in a not ready state
- alert: KubePodNotReadyControlPlane
expr: kube_pod_status_ready{condition="true", type="seed", pod!~"(.+)curator(.+)"} == 0
expr: kube_pod_status_ready{condition="true", type="seed", pod!~"(.+)compact-job(.+)"} == 0
for: 30m
labels:
service: kube-kubelet
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ groups:
description: Pod {{ $labels.pod }} is stuck in "Pending" state for more than 30 minutes.
summary: Control plane pod stuck in "Pending" state
- alert: KubePodNotReadyControlPlane
expr: kube_pod_status_ready{condition="true", type="seed", pod!~"(.+)curator(.+)"} == 0
expr: kube_pod_status_ready{condition="true", type="seed", pod!~"(.+)compact-job(.+)"} == 0
for: 30m
labels:
service: kube-kubelet
Expand Down

0 comments on commit b2d4933

Please sign in to comment.