-
Bug
-
Resolution: Won't Do
-
Minor
-
None
-
4.14.0
-
Quality / Stability / Reliability
-
False
-
-
None
-
Important
-
None
-
None
-
None
-
Rejected
-
None
-
Customer Facing
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Description of problem:
Should alert when pod has a PodDisruptionBudge(minAvailable=1 disruptionsAllowed 0)
Version-Release number of selected component (if applicable):
4.13.0-0.nightly-2023-04-21-084440
How reproducible:
always
Steps to Reproduce:
1 ) Create pod and PodDisruptionBudget on hypershift hosted cluster: `oc new-app --image=quay.io/openshifttest/hello-openshift:1.2.0` `oc create poddisruptionbudget test51876 --min-available=1 --selector=deployment\=hello-openshift` 2) Scale down the deploy to replicas=0; 3) Check the alert from openshift-monitoring `export token=oc create token prometheus-k8s -n openshift-monitoring` `oc -n openshift-monitoring exec -c prometheus prometheus-k8s-0 -- curl -k -H "Authorization: Bearer $token" 'https://prometheus-k8s.openshift-monitoring.svc:9091/api/v1/query?query=ALERTS%7Balertname%3D%22PodDisruptionBudgetAtLimit%22%7D'`
Actual results:
3. Can’t get alert from the prometheus;
Expected results:
3. Should get alert from the prometheus.