From 3df50576b996c017f6c4d5fd4361a2afafd5997f Mon Sep 17 00:00:00 2001 From: craifiskerinc <108751807+craifiskerinc@users.noreply.github.com> Date: Wed, 12 Apr 2023 10:51:18 -0400 Subject: [PATCH] CEC-4013 CPU Limits (#308) * CEC-4013 removing CPU limits * CEC-4013 deployment template changes --------- Co-authored-by: Christopher Rai --- k8s/templates/deployment.yaml | 7 +------ k8s/values-cec-euprd.yaml | 2 +- k8s/values-cec-prd.yaml | 2 +- k8s/values-dev.yaml | 2 +- k8s/values-prd.yaml | 2 +- k8s/values-stg.yaml | 2 +- 6 files changed, 6 insertions(+), 11 deletions(-) diff --git a/k8s/templates/deployment.yaml b/k8s/templates/deployment.yaml index d807e32..f4cab1c 100644 --- a/k8s/templates/deployment.yaml +++ b/k8s/templates/deployment.yaml @@ -24,12 +24,7 @@ spec: - name: {{ .Chart.Name }} image: "{{ .Values.image.registry }}/{{ .Values.image.name }}:{{ .Values.image.tag}}" resources: - requests: - cpu: {{ .Values.resources.requests.cpu }} - memory: {{ .Values.resources.requests.memory }} - limits: - cpu: {{ .Values.resources.limits.cpu }} - memory: {{ .Values.resources.limits.memory }} + {{- toYaml .Values.resources | nindent 12 }} env: # non-secret env vars {{- range $name, $value := $.Values.env }} diff --git a/k8s/values-cec-euprd.yaml b/k8s/values-cec-euprd.yaml index 12f9d4a..79af594 100644 --- a/k8s/values-cec-euprd.yaml +++ b/k8s/values-cec-euprd.yaml @@ -6,7 +6,7 @@ resources: cpu: 100m memory: 128Mi limits: - cpu: 250m + #cpu: 250m memory: 256Mi replicas: 3 diff --git a/k8s/values-cec-prd.yaml b/k8s/values-cec-prd.yaml index c2c8e18..579c364 100644 --- a/k8s/values-cec-prd.yaml +++ b/k8s/values-cec-prd.yaml @@ -6,7 +6,7 @@ resources: cpu: 100m memory: 128Mi limits: - cpu: 250m + #cpu: 250m memory: 256Mi replicas: 3 diff --git a/k8s/values-dev.yaml b/k8s/values-dev.yaml index 5885b55..6fb8400 100644 --- a/k8s/values-dev.yaml +++ b/k8s/values-dev.yaml @@ -6,7 +6,7 @@ resources: cpu: 100m memory: 128Mi limits: - cpu: 250m + #cpu: 250m memory: 256Mi replicas: 1 diff --git a/k8s/values-prd.yaml b/k8s/values-prd.yaml index 80d6163..64eb47d 100644 --- a/k8s/values-prd.yaml +++ b/k8s/values-prd.yaml @@ -6,7 +6,7 @@ resources: cpu: 100m memory: 128Mi limits: - cpu: 250m + #cpu: 250m memory: 256Mi replicas: 3 diff --git a/k8s/values-stg.yaml b/k8s/values-stg.yaml index efbbf2d..0ea9afb 100644 --- a/k8s/values-stg.yaml +++ b/k8s/values-stg.yaml @@ -6,7 +6,7 @@ resources: cpu: 100m memory: 128Mi limits: - cpu: 250m + #cpu: 250m memory: 256Mi replicas: 1