Containers time zone sync
[oom.git] / kubernetes / portal / templates / portal-widgets-deployment.yaml
index 0aea756..fb6b4d8 100644 (file)
@@ -2,7 +2,7 @@ apiVersion: extensions/v1beta1
 kind: Deployment
 metadata:
   name: portalwidgets
-  namespace: {{ .Values.NS }}
+  namespace: "{{ .Values.nsPrefix }}-portal"
 spec:
   selector:
     matchLabels:
@@ -44,6 +44,9 @@ spec:
         imagePullPolicy: {{ .Values.pullPolicy }} 
         name: portalwidgets
         volumeMounts:
+        - mountPath: /etc/localtime
+          name: localtime
+          readOnly: true
         - mountPath: /application.properties
           name: portalwidgets-application-properties
         ports:
@@ -54,6 +57,11 @@ spec:
           initialDelaySeconds: 5
           periodSeconds: 10
       volumes:
+        - name: localtime
+          hostPath:
+            path: /etc/localtime
         - name: portalwidgets-application-properties
           hostPath:
-            path: /dockerdata-nfs/onap/portal/portal-fe/webapps/etc/ECOMPWIDGETMS/application.properties
+            path: /dockerdata-nfs/{{ .Values.nsPrefix }}/portal/portal-fe/webapps/etc/ECOMPWIDGETMS/application.properties
+      imagePullSecrets:
+      - name: "{{ .Values.nsPrefix }}-docker-registry-key"
\ No newline at end of file