Merge "[CPS] New Delhi release changes"
[oom.git] / kubernetes / sdc / components / sdc-be / templates / deployment.yaml
index 010c296..229d423 100644 (file)
@@ -29,11 +29,11 @@ spec:
         command:
         - /app/ready.py
         args:
-        - --container-name
-        - "sdc-onboarding-be"
+        - --service-name
+        - sdc-onboarding-be
         {{- if not .Values.global.kafka.useKafka }}
-        - --container-name
-        - "message-router"
+        - --service-name
+        - message-router
         {{- end }}
         env:
         - name: NAMESPACE
@@ -45,11 +45,11 @@ spec:
         imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
         resources:
           limits:
-            cpu: 100m
-            memory: 100Mi
+            cpu: "100m"
+            memory: "500Mi"
           requests:
-            cpu: 3m
-            memory: 20Mi
+            cpu: "3m"
+            memory: "20Mi"
       - name: {{ include "common.name" . }}-job-completion
         image: {{ include "repositoryGenerator.image.readiness" . }}
         imagePullPolicy: "{{ .Values.global.pullPolicy | default .Values.pullPolicy }}"
@@ -66,11 +66,11 @@ spec:
               fieldPath: metadata.namespace
         resources:
           limits:
-            cpu: 100m
-            memory: 100Mi
+            cpu: "100m"
+            memory: "500Mi"
           requests:
-            cpu: 3m
-            memory: 20Mi
+            cpu: "3m"
+            memory: "20Mi"
       containers:
         - name: {{ include "common.name" . }}
           image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
@@ -129,9 +129,6 @@ spec:
           volumeMounts:
           - name: sdc-environments
             mountPath: /app/jetty/chef-solo/environments/
-          - name: localtime
-            mountPath: /etc/localtime
-            readOnly: true
           - name: logs
             mountPath: /var/log/onap
           - name: logback
@@ -145,9 +142,6 @@ spec:
         {{ include "common.log.sidecar" . | nindent 8 }}
       serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
       volumes:
-      - name: localtime
-        hostPath:
-          path: /etc/localtime
       {{ include "common.log.volumes" (dict "dot" . "configMapNamePrefix" (tpl .Values.logConfigMapNamePrefix .)) | nindent 6 }}
       - name: logback
         configMap:
@@ -158,5 +152,4 @@ spec:
           defaultMode: 0755
       - name: logs
         emptyDir: {}
-      imagePullSecrets:
-      - name: "{{ include "common.namespace" . }}-docker-registry-key"
+      {{- include "common.imagePullSecrets" . | nindent 6 }}