From 62927a13cd4b1457d1ebfbd838a4cba145aa9c98 Mon Sep 17 00:00:00 2001 From: Mukul Date: Tue, 11 Sep 2018 11:42:00 +0000 Subject: Resource Limits for multicloud Issue-ID: OOM-1155 Change-Id: Ie727d224eb0ffbd619b46cf66d765b0b0afd454e Signed-off-by: Mukul --- .../charts/multicloud-ocata/templates/deployment.yaml | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'kubernetes/multicloud/charts/multicloud-ocata/templates') diff --git a/kubernetes/multicloud/charts/multicloud-ocata/templates/deployment.yaml b/kubernetes/multicloud/charts/multicloud-ocata/templates/deployment.yaml index ba249be6c9..1c91e8af3f 100644 --- a/kubernetes/multicloud/charts/multicloud-ocata/templates/deployment.yaml +++ b/kubernetes/multicloud/charts/multicloud-ocata/templates/deployment.yaml @@ -62,6 +62,8 @@ spec: - mountPath: /opt/ocata/ocata/pub/config/log.yml name: ocata-logconfig subPath: log.yml + resources: +{{ toYaml (pluck .Values.flavor .Values.resources| first) | indent 12 }} image: "{{ include "common.repository" . }}/{{ .Values.image }}" imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }} ports: @@ -80,17 +82,6 @@ spec: successThreshold: {{ .Values.liveness.successThreshold }} failureThreshold: {{ .Values.liveness.failureThreshold }} {{ end }} - resources: -{{ toYaml .Values.resources | indent 12 }} - {{- if .Values.nodeSelector }} - nodeSelector: -{{ toYaml .Values.nodeSelector | indent 10 }} - {{- end -}} - {{- if .Values.affinity }} - affinity: -{{ toYaml .Values.affinity | indent 10 }} - {{- end }} - # side car containers - image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}" imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }} -- cgit 1.2.3-korg