From 82939c1e60106270ce3244018f13f33af8fdea99 Mon Sep 17 00:00:00 2001 From: james-otten Date: Thu, 10 Oct 2024 23:38:59 -0400 Subject: [PATCH 1/2] resource request and limit --- infra/helm/meshdb/values.yaml | 50 ++++++++++++++++++++++++----------- 1 file changed, 35 insertions(+), 15 deletions(-) diff --git a/infra/helm/meshdb/values.yaml b/infra/helm/meshdb/values.yaml index ae535868..0cd3a133 100644 --- a/infra/helm/meshdb/values.yaml +++ b/infra/helm/meshdb/values.yaml @@ -19,17 +19,13 @@ pg: # readOnlyRootFilesystem: true # runAsNonRoot: true # runAsUser: 1000 - resources: {} - # We usually recommend not to specify default resources and to leave this as a conscious - # choice for the user. This also increases chances charts run on environments with little - # resources, such as Minikube. If you do want to specify resources, uncomment the following - # lines, adjust them as necessary, and remove the curly braces after 'resources:'. - # limits: - # cpu: 100m - # memory: 128Mi - # requests: - # cpu: 100m - # memory: 128Mi + resources: + limits: + cpu: 1 + memory: 512Mi + requests: + cpu: 200m + memory: 256Mi nodeSelector: {} affinity: {} tolerations: [] @@ -47,7 +43,13 @@ meshweb: tag: main podSecurityContext: {} securityContext: {} - resources: {} + resources: + limits: + cpu: 1 + memory: 512Mi + requests: + cpu: 200m + memory: 350Mi nodeSelector: {} affinity: {} tolerations: [] @@ -56,7 +58,13 @@ nginx: port: 80 podSecurityContext: {} securityContext: {} - resources: {} + resources: + limits: + cpu: 1 + memory: 100Mi + requests: + cpu: 250m + memory: 30Mi nodeSelector: {} affinity: {} tolerations: [] @@ -83,7 +91,13 @@ redis: port: 6379 podSecurityContext: {} securityContext: {} - resources: {} + resources: + limits: + cpu: 1 + memory: 512Mi + requests: + cpu: 50m + memory: 30Mi nodeSelector: {} affinity: {} tolerations: [] @@ -92,7 +106,13 @@ pelias: port: 3000 podSecurityContext: {} securityContext: {} - resources: {} + resources: + limits: + cpu: 1 + memory: 512Mi + requests: + cpu: 250m + memory: 250Mi nodeSelector: {} affinity: {} tolerations: [] From 846a7fda2c043db743d09b67132fad355fa5fa23 Mon Sep 17 00:00:00 2001 From: james-otten Date: Thu, 17 Oct 2024 00:26:23 -0400 Subject: [PATCH 2/2] updates --- infra/helm/meshdb/values.yaml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/infra/helm/meshdb/values.yaml b/infra/helm/meshdb/values.yaml index 0cd3a133..35bf8a94 100644 --- a/infra/helm/meshdb/values.yaml +++ b/infra/helm/meshdb/values.yaml @@ -24,7 +24,7 @@ pg: cpu: 1 memory: 512Mi requests: - cpu: 200m + cpu: 1 memory: 256Mi nodeSelector: {} affinity: {} @@ -49,7 +49,7 @@ meshweb: memory: 512Mi requests: cpu: 200m - memory: 350Mi + memory: 512Mi nodeSelector: {} affinity: {} tolerations: [] @@ -60,10 +60,10 @@ nginx: securityContext: {} resources: limits: - cpu: 1 - memory: 100Mi - requests: cpu: 250m + memory: 128Mi + requests: + cpu: 100m memory: 30Mi nodeSelector: {} affinity: {} @@ -93,11 +93,11 @@ redis: securityContext: {} resources: limits: - cpu: 1 + cpu: 250m memory: 512Mi requests: - cpu: 50m - memory: 30Mi + cpu: 250m + memory: 256Mi nodeSelector: {} affinity: {} tolerations: [] @@ -108,11 +108,11 @@ pelias: securityContext: {} resources: limits: - cpu: 1 - memory: 512Mi - requests: cpu: 250m - memory: 250Mi + memory: 256Mi + requests: + cpu: 100m + memory: 128Mi nodeSelector: {} affinity: {} tolerations: []