Openshift Monitoring Cluster Operator degraded with "UpdatingPrometheusK8SFailed"
Issue
- Monitoring Cluster Operator is degraded with the following
UpdatingPrometheusK8SFailederror:
message: 'reconciling Prometheus object failed: updating Prometheus object failed:
Prometheus.monitoring.coreos.com "k8s" is invalid: spec.retentionSize: Invalid
value: "10G": spec.retentionSize in body should match ''(^0|([0-9]*[.])?[0-9]+((K|M|G|T|E|P)i?)?B)$'''
reason: UpdatingPrometheusK8SFailed
Environment
- Red Hat OpenShift Container Platform (RHOCP)
- 4.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.