prometheus-operator: Add storage to alertmanager and prometheus
@@ -26,6 +26,17 @@ alertmanager:
{{ $key }}: {{ $value }}
{{ end }}
{{ end }}
+ storage:
+ volumeClaimTemplate:
+ # This is done to reduce the name length of PVC that is autogenerated if metadata.Name is
+ # not provided. More info: https://github.com/coreos/prometheus-operator/issues/2865.
+ metadata:
+ name: data
+ spec:
+ accessModes: ["ReadWriteOnce"]
+ resources:
+ requests:
+ storage: 50Gi
grafana:
adminPassword: {{.GrafanaAdminPassword}}
testFramework:
@@ -53,4 +64,13 @@ prometheus:
{{ end }}
{{ end }}
retention: {{.PrometheusMetricsRetention}}
+ storageSpec:
+ volumeClaimTemplate:
+ metadata:
+ name: data
+ spec:
+ accessModes: ["ReadWriteOnce"]
+ resources:
+ requests:
+ storage: 50Gi
`
