summaryrefslogtreecommitdiffstats
path: root/kubernetes/common/mongo/templates/statefulset.yaml
diff options
context:
space:
mode:
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>2020-09-23 10:39:31 +0200
committerSylvain Desbureaux <sylvain.desbureaux@orange.com>2020-09-23 12:27:04 +0000
commitc27b6a347bfafa617f005a2b0b86aac18bc20ad1 (patch)
tree7f590b8bc1989e328c4a19585ec19ef11d4d7baa /kubernetes/common/mongo/templates/statefulset.yaml
parentec5b6edc17aabbea977a72abcaa7eb835536d3d9 (diff)
[COMMON] Add limits to mongo statefulsets.
Having limits is important in order to have safe deployment. mongo didn't had one so let's add them. Issue-ID: OOM-2230 Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com> Change-Id: I4791b924693e4e1eaac14077d4f30e3d29228779
Diffstat (limited to 'kubernetes/common/mongo/templates/statefulset.yaml')
-rw-r--r--kubernetes/common/mongo/templates/statefulset.yaml3
1 files changed, 1 insertions, 2 deletions
diff --git a/kubernetes/common/mongo/templates/statefulset.yaml b/kubernetes/common/mongo/templates/statefulset.yaml
index abc71b3133..df922ed004 100644
--- a/kubernetes/common/mongo/templates/statefulset.yaml
+++ b/kubernetes/common/mongo/templates/statefulset.yaml
@@ -71,8 +71,7 @@ spec:
volumeMounts:
- name: {{ include "common.fullname" . }}-data
mountPath: /var/lib/mongo
- resources:
-{{ include "common.resources" . | indent 12 }}
+ resources: {{ include "common.resources" . | nindent 12 }}
{{ include "common.containerSecurityContext" . | indent 10 }}
{{- if .Values.nodeSelector }}
nodeSelector: