From 3655cf856a0177e65b4d7ba18c150ddf2d0b83f5 Mon Sep 17 00:00:00 2001 From: Pratik Raj Date: Tue, 22 Oct 2024 11:34:50 +0530 Subject: [PATCH] fix #1601 : enable cpu limit for "robusta-forwarder" service as current config cause cpu hogging Signed-off-by: Pratik Raj --- helm/robusta/templates/forwarder.yaml | 2 +- helm/robusta/values.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/helm/robusta/templates/forwarder.yaml b/helm/robusta/templates/forwarder.yaml index 35c5e2daf..0b30d8f9b 100644 --- a/helm/robusta/templates/forwarder.yaml +++ b/helm/robusta/templates/forwarder.yaml @@ -68,8 +68,8 @@ spec: cpu: {{ .Values.kubewatch.resources.requests.cpu }} memory: {{ if .Values.isSmallCluster }}"64Mi"{{ else }}{{ .Values.kubewatch.resources.requests.memory | quote }}{{ end }} limits: + cpu: {{ .Values.kubewatch.resources.limits.cpu }} memory: {{ if .Values.isSmallCluster }}"64Mi"{{ else if .Values.kubewatch.resources.limits.memory }}{{ .Values.kubewatch.resources.limits.memory | quote }}{{ else }}{{ .Values.kubewatch.resources.requests.memory | quote }}{{ end }} - {{ if .Values.kubewatch.resources.limits.cpu }}cpu: {{ .Values.kubewatch.resources.limits.cpu | quote }}{{ end }} volumes: - name: {{ include "robusta.fullname" . }}-kubewatch-config configMap: diff --git a/helm/robusta/values.yaml b/helm/robusta/values.yaml index 7682d7691..59ec208f2 100644 --- a/helm/robusta/values.yaml +++ b/helm/robusta/values.yaml @@ -595,7 +595,7 @@ kubewatch: cpu: 10m memory: 512Mi limits: - cpu: ~ + cpu: 50m additional_env_vars: [] priorityClassName: "" tolerations: []