Containers time zone sync
[oom.git] / kubernetes / sdnc / templates / web-deployment.yaml
index 280bf25..4f7886d 100644 (file)
@@ -2,7 +2,7 @@ apiVersion: extensions/v1beta1
 kind: Deployment
 metadata:
   name: sdnc-portal
-  namespace: {{ .Values.NS }}
+  namespace: "{{ .Values.nsPrefix }}-sdnc"
 spec:
   selector:
     matchLabels:
@@ -56,11 +56,19 @@ spec:
         name: sdnc-portal-container
         ports:
         - containerPort: 8843
+        volumeMounts:
+        - name: localtime
+          mountPath: /etc/localtime
+          readOnly: true
         readinessProbe:
           tcpSocket:
             port: 8843
           initialDelaySeconds: 5
           periodSeconds: 10
       restartPolicy: Always
+      volumes:
+      - name: localtime
+        hostPath:
+          path: /etc/localtime
       imagePullSecrets:
-      - name: onap-docker-registry-key
+      - name: "{{ .Values.nsPrefix }}-docker-registry-key"