From 7ec613d27fd2e4b40ac90b1083d8e69445b86adc Mon Sep 17 00:00:00 2001 From: Finn Date: Fri, 1 Nov 2024 18:03:24 -0700 Subject: [PATCH] set prom retention by size on disk --- k8s/operators/kube-prometheus/prometheus-patch.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/k8s/operators/kube-prometheus/prometheus-patch.yaml b/k8s/operators/kube-prometheus/prometheus-patch.yaml index cb75e38..a1c831d 100644 --- a/k8s/operators/kube-prometheus/prometheus-patch.yaml +++ b/k8s/operators/kube-prometheus/prometheus-patch.yaml @@ -1,3 +1,11 @@ +- op: add + path: /spec/storage + value: + volumeClaimTemplate: + spec: + resources: + requests: + storage: 40Gi - op: add path: /spec/additionalScrapeConfigs value: @@ -24,4 +32,4 @@ spec: resources: requests: - storage: 20Gi + storage: 50Gi