apiVersion: v1
kind: ConfigMap
data:
config.yaml: |
prometheusK8s:
retention: {{PROMETHEUS_RETENTION_PERIOD}} (1)
nodeSelector:
node-role.kubernetes.io/infra: ""
volumeClaimTemplate:
spec:
storageClassName: {{STORAGE_CLASS}} (2)
resources:
requests:
storage: {{PROMETHEUS_STORAGE_SIZE}} (3)
alertmanagerMain:
nodeSelector:
node-role.kubernetes.io/infra: ""
volumeClaimTemplate:
spec:
storageClassName: {{STORAGE_CLASS}} (2)
resources:
requests:
storage: {{ALERTMANAGER_STORAGE_SIZE}} (4)
metadata:
name: cluster-monitoring-config
namespace: openshift-monitoring