diff options
author | Sylvain Desbureaux <sylvain.desbureaux@orange.com> | 2020-09-23 10:31:50 +0200 |
---|---|---|
committer | Sylvain Desbureaux <sylvain.desbureaux@orange.com> | 2020-10-19 11:51:48 +0200 |
commit | 335781fd144f8cd785678167282d33d80770f116 (patch) | |
tree | 85fc3f804942960a429adf6a93b198579ec0982c /kubernetes/common/postgres/templates/_deployment.tpl | |
parent | c08c8ffa8ec4f063c22e19acdc0a1e23edd4f26f (diff) |
[COMMON] Add limits to postgres deployments.
Having limits is important in order to have safe deployment.
postgres didn't had one so let's add them.
Issue-ID: OOM-2230
Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com>
Change-Id: I279e01b6be6cddab1f792c75026b41dca5c6c694
Diffstat (limited to 'kubernetes/common/postgres/templates/_deployment.tpl')
-rw-r--r-- | kubernetes/common/postgres/templates/_deployment.tpl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/kubernetes/common/postgres/templates/_deployment.tpl b/kubernetes/common/postgres/templates/_deployment.tpl index 9ce9b88644..1048811328 100644 --- a/kubernetes/common/postgres/templates/_deployment.tpl +++ b/kubernetes/common/postgres/templates/_deployment.tpl @@ -146,8 +146,7 @@ spec: - mountPath: /backup name: {{ include "common.fullname" $dot }}-backup readOnly: true - resources: -{{ include "common.resources" $dot | indent 12 }} + resources: {{ include "common.resources" $dot | nindent 12 }} {{- if $dot.Values.nodeSelector }} nodeSelector: {{ toYaml $dot.Values.nodeSelector | indent 10 }} |