From cc9752515dddd4241810d8ef80a9eb6c819d035d Mon Sep 17 00:00:00 2001 From: Divyansh Kamboj Date: Fri, 20 Sep 2024 12:41:17 +0530 Subject: [PATCH] remove resource limits on ocs-metrics-exporter removing the limits on ocs-metrics-exporter, the in memory cache scales with the amount of PVs in the cluster making it hard to point out an upper limit for the memory. Signed-off-by: Divyansh Kamboj --- controllers/defaults/resources.go | 4 ---- metrics/deploy/deployment.yaml | 4 ---- 2 files changed, 8 deletions(-) diff --git a/controllers/defaults/resources.go b/controllers/defaults/resources.go index f8e03d94c0..ec79b92e78 100644 --- a/controllers/defaults/resources.go +++ b/controllers/defaults/resources.go @@ -69,10 +69,6 @@ var ( "memory": resource.MustParse("50Mi"), "cpu": resource.MustParse("50m"), }, - Limits: corev1.ResourceList{ - "memory": resource.MustParse("150Mi"), - "cpu": resource.MustParse("150m"), - }, }, } diff --git a/metrics/deploy/deployment.yaml b/metrics/deploy/deployment.yaml index 4c3ad2a65c..1be080c4d7 100644 --- a/metrics/deploy/deployment.yaml +++ b/metrics/deploy/deployment.yaml @@ -92,9 +92,6 @@ spec: readOnly: true mountPath: /etc/kube-rbac-policy - resources: - limits: - cpu: 150m - memory: 150Mi requests: cpu: 50m memory: 50Mi @@ -145,4 +142,3 @@ spec: - name: ocs-metrics-exporter-kube-rbac-proxy-config secret: secretName: ocs-metrics-exporter-kube-rbac-proxy-config -