From 25eff9f0f02505b681a9b691e0be3808678589d9 Mon Sep 17 00:00:00 2001 From: Kavitha Thulasiraman Date: Thu, 19 Aug 2021 08:43:55 -0400 Subject: [PATCH 1/2] add resource limit --- chart/values.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/chart/values.yaml b/chart/values.yaml index f0c0dd6..d841696 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -122,7 +122,14 @@ initContainers: # securityContext: {} # We allow the init containers to have a separate resources declaration because # the initContainer does not take as much resources. - resources: {} + resources: + limits: + memory: 2Gi + cpu: 250m + requests: + memory: 512Mi + cpu: 250m + ## Provide a secret containing one or more certificate files in the keys that will be added to cacerts ## The cacerts file will be set via SONARQUBE_WEB_JVM_OPTS and SONAR_CE_JAVAOPTS -- GitLab From d05597d481c19c7e6823cadfe812d26cf339f0ba Mon Sep 17 00:00:00 2001 From: Kavitha Thulasiraman Date: Thu, 19 Aug 2021 10:55:55 -0400 Subject: [PATCH 2/2] add resource limit and request --- chart/values.yaml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/chart/values.yaml b/chart/values.yaml index d841696..c65467b 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -123,14 +123,13 @@ initContainers: # We allow the init containers to have a separate resources declaration because # the initContainer does not take as much resources. resources: - limits: - memory: 2Gi - cpu: 250m - requests: - memory: 512Mi - cpu: 250m - - + limits: + memory: 2Gi + cpu: 250m + requests: + memory: 2Gi + cpu: 250m + ## Provide a secret containing one or more certificate files in the keys that will be added to cacerts ## The cacerts file will be set via SONARQUBE_WEB_JVM_OPTS and SONAR_CE_JAVAOPTS ## -- GitLab