diff --git a/templates/_helpers.tpl b/templates/_helpers.tpl index 2b3c84999eae5c3c47e71544f08c37fb9ff27134..52ca49a0110a2d15f48c03ff415d977afb3a26f2 100644 --- a/templates/_helpers.tpl +++ b/templates/_helpers.tpl @@ -59,13 +59,13 @@ app.kubernetes.io/namespace: {{ include "app.namespace" . }} memory: "1000Mi" requests: cpu: "200m" - memory: "500Mi" + memory: "250Mi" {{- else }} limits: cpu: "1" memory: "1000Mi" requests: cpu: "50m" - memory: "500Mi" + memory: "250Mi" {{- end }} {{- end -}} diff --git a/unit-tests/deployment_resources_test.yaml b/unit-tests/deployment_resources_test.yaml index 02548e6a8976894ee87867e10d5932d5108c677b..32514e148f8faec75b2f3e1738df526d66c4732b 100644 --- a/unit-tests/deployment_resources_test.yaml +++ b/unit-tests/deployment_resources_test.yaml @@ -19,7 +19,7 @@ tests: value: 200m - equal: path: spec.template.spec.containers[0].resources.requests.memory - value: 500Mi + value: 250Mi - it: test default resources release: namespace: sh-name-dev @@ -35,5 +35,5 @@ tests: value: 50m - equal: path: spec.template.spec.containers[0].resources.requests.memory - value: 500Mi + value: 250Mi