-
Story
-
Resolution: Done
-
Undefined
-
None
-
None
-
None
-
False
-
-
False
-
None
-
Testable
-
-
https://pagure.io/centos-infra/issue/1619
Hello,
Following https://pagure.io/centos-infra/issue/1604 our service account should be allowed to create a Prometheus resource in our namespace.
Attempting to create such a resource ends up hanging:
```shell
kubectl describe prometheus/prometheus
Name: prometheus
Namespace: cloud-softwarefactory
Labels: app=observability-stack
run=prometheus
Annotations: <none>
API Version: monitoring.coreos.com/v1
Kind: Prometheus
Metadata:
Creation Timestamp: 2025-03-13T16:04:30Z
Generation: 1
Resource Version: 425407538
UID: 6b09a3f5-c7d8-43f7-9f55-54a08759eba2
Spec:
Config Maps:
prometheus-extra-scrapeconfig
Enable Admin API: false
Evaluation Interval: 30s
External Labels:
Softwarefactory: centosinfra-prod
Pod Monitor Namespace Selector:
Pod Monitor Selector:
Match Expressions:
Key: sf-monitoring
Operator: Exists
Port Name: web
Resources:
Requests:
Memory: 400Mi
Rule Namespace Selector:
Rule Selector:
Match Expressions:
Key: sf-monitoring
Operator: Exists
Rules:
Alert:
Scrape Interval: 30s
Service Account Name: sf-service-account
Service Monitor Namespace Selector:
Service Monitor Selector:
Match Expressions:
Key: sf-monitoring
Operator: Exists
Events: <none>
```
No events are logged for the resource; I'd expect at least one pod running a prometheus container shoud be up. Could you check the prometheus operator's logs and see if any error message appears related to this resource?
Thanks!