From 676db035169673430a529043fb8adb908650176c Mon Sep 17 00:00:00 2001 From: Floppy Disk Date: Mon, 4 Nov 2024 16:26:44 +0300 Subject: [PATCH] remove cpu limits --- packages/apps/redis/templates/redisfailover.yaml | 3 +-- packages/extra/monitoring/templates/vm/vmcluster.yaml | 6 ++++++ packages/system/monitoring-agents/templates/vmagent.yaml | 6 ++++++ 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/packages/apps/redis/templates/redisfailover.yaml b/packages/apps/redis/templates/redisfailover.yaml index 567bc949..ca95caa1 100644 --- a/packages/apps/redis/templates/redisfailover.yaml +++ b/packages/apps/redis/templates/redisfailover.yaml @@ -20,7 +20,6 @@ spec: cpu: 150m memory: 400Mi limits: - cpu: 2 memory: 1000Mi {{- with .Values.size }} storage: @@ -37,7 +36,7 @@ spec: storageClassName: {{ . }} {{- end }} {{- end }} - exporter: + exporter: enabled: true image: oliver006/redis_exporter:v1.55.0-alpine args: diff --git a/packages/extra/monitoring/templates/vm/vmcluster.yaml b/packages/extra/monitoring/templates/vm/vmcluster.yaml index 1c7923b0..433ba4c0 100644 --- a/packages/extra/monitoring/templates/vm/vmcluster.yaml +++ b/packages/extra/monitoring/templates/vm/vmcluster.yaml @@ -12,6 +12,12 @@ spec: resources: {} vmselect: replicaCount: 2 + resources: + limits: + memory: 1000Mi + requests: + cpu: 100m + memory: 500Mi extraArgs: search.maxUniqueTimeseries: "600000" vmalert.proxyURL: http://vmalert-{{ .name }}.{{ $.Release.Namespace }}.svc:8080 diff --git a/packages/system/monitoring-agents/templates/vmagent.yaml b/packages/system/monitoring-agents/templates/vmagent.yaml index ec117de9..1bb73b09 100644 --- a/packages/system/monitoring-agents/templates/vmagent.yaml +++ b/packages/system/monitoring-agents/templates/vmagent.yaml @@ -16,6 +16,12 @@ spec: additionalScrapeConfigs: name: additional-scrape-configs key: prometheus-additional.yaml + resources: + limits: + memory: 500Mi + requests: + cpu: 50m + memory: 200Mi #statefulMode: true #statefulStorage: # volumeClaimTemplate: