Containers time zone sync
[oom.git] / kubernetes / policy / templates / dep-brmsgw.yaml
index 3f59d21..e47b040 100644 (file)
@@ -2,7 +2,7 @@ apiVersion: extensions/v1beta1
 kind: Deployment
 metadata:
   name: brmsgw
-  namespace: {{ .Values.NS }}
+  namespace: "{{ .Values.nsPrefix }}-policy"
 spec:
   replicas: 1
   selector:
@@ -24,9 +24,7 @@ spec:
                   "--container-name",
                   "pap",
                   "--container-name",
-                  "pdp",
-                  "--container-name",
-                  "pypdp"
+                  "pdp"
               ],
               "command": [
                   "/root/ready.py"
@@ -42,7 +40,7 @@ spec:
                       }
                   }
               ],
-              "image": "{{ .Values.image.readiness }}",
+              "image": "{{ .Values.image.readiness }}:{{ .Values.image.readinessVersion }}",
               "imagePullPolicy": "{{ .Values.pullPolicy }}",
               "name": "brmsgw-readiness"
           }
@@ -53,15 +51,21 @@ spec:
         - /bin/bash
         - ./do-start.sh
         - brmsgw
-        image: {{ .Values.image.policyPe }}
+        image: "{{ .Values.image.policyPe }}:{{ .Values.image.policyPeVersion}}"
         imagePullPolicy: {{ .Values.pullPolicy }}
         name: brmsgw
         volumeMounts:
+        - mountPath: /etc/localtime
+          name: localtime
+          readOnly: true
         - mountPath: /tmp/policy-install/config
           name: pe
       volumes:
+        - name: localtime
+          hostPath:
+            path: /etc/localtime
         - name: pe
           hostPath:
-            path: /dockerdata-nfs/onap/policy/opt/policy/config/pe/
+            path: /dockerdata-nfs/{{ .Values.nsPrefix }}/policy/opt/policy/config/pe/
       imagePullSecrets:
-      - name: onap-docker-registry-key
+      - name: "{{ .Values.nsPrefix }}-docker-registry-key"