Merge "[SDC] Update pod limits and timeouts"
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>
Wed, 7 Oct 2020 06:33:14 +0000 (06:33 +0000)
committerGerrit Code Review <gerrit@onap.org>
Wed, 7 Oct 2020 06:33:14 +0000 (06:33 +0000)
1  2 
kubernetes/sdc/components/sdc-wfd-fe/templates/deployment.yaml

@@@ -48,6 -48,13 +48,13 @@@ spec
                fieldPath: metadata.namespace
          image: "{{ include "common.repository" . }}/{{ .Values.global.readinessImage }}"
          imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
+         resources:
+           limits:
+             cpu: 100m
+             memory: 100Mi
+           requests:
+             cpu: 3m
+             memory: 20Mi
        {{- if .Values.global.aafEnabled }}
        - name: {{ include "common.fullname" . }}-move-cert
          command:
          volumeMounts: {{ include "common.certInitializer.volumeMount" . | nindent 10 }}
            - name: sdc-certs
              mountPath: /sdc-certs
+         resources:
+           limits:
+             cpu: 100m
+             memory: 100Mi
+           requests:
+             cpu: 3m
+             memory: 20Mi
        {{- end }}
        containers:
          - name: {{ include "common.name" . }}
              readOnly: true
            {{- if .Values.global.aafEnabled }}
            - name: sdc-certs
 -            mountPath: /sdc-certs
 -            subpath: mycreds.prop
 +            mountPath: /sdc-certs/mycreds.prop
 +            subPath: mycreds.prop
            - name: sdc-certs
              mountPath: /var/lib/jetty/etc/{{ .Values.certInitializer.keystoreFile }}
              subPath: {{ .Values.certInitializer.keystoreFile }}
              mountPath: /var/lib/jetty/etc/{{ .Values.certInitializer.truststoreFile }}
              subPath: {{ .Values.certInitializer.truststoreFile }}
            {{ end }}
-           resources:
- {{ include "common.resources" . | indent 12 }}
+           resources: {{ include "common.resources" . | nindent 12 }}
          {{- if .Values.nodeSelector }}
          nodeSelector:
  {{ toYaml .Values.nodeSelector | indent 10 }}
              mountPath: /var/log/onap
            - name: {{ include "common.fullname" . }}-data-filebeat
              mountPath: /usr/share/filebeat/data
+           resources:
+             limits:
+               cpu: 100m
+               memory: 100Mi
+             requests:
+               cpu: 3m
+               memory: 20Mi
        volumes: {{ include "common.certInitializer.volumes" . | nindent 8 }}
          - name: {{ include "common.fullname" . }}-localtime
            hostPath: