Containers time zone sync
[oom.git] / kubernetes / message-router / templates / message-router-zookeeper.yaml
index 5b46dc0..0377beb 100644 (file)
@@ -25,12 +25,18 @@ spec:
           initialDelaySeconds: 5
           periodSeconds: 10
         volumeMounts:
+        - mountPath: /etc/localtime
+          name: localtime
+          readOnly: true
         - mountPath: /opt/zookeeper-3.4.9/data
           name: zookeeper-data
       restartPolicy: Always
       volumes:
-      - name: zookeeper-data
+      - name: localtime
         hostPath:
-          path: /dockerdata-nfs/{{ .Values.nsPrefix }}/message-router/dcae-startup-vm-message-router/docker_files/data-zookeeper
+          path: /etc/localtime
+      - name: zookeeper-data
+        persistentVolumeClaim:
+          claimName: message-router-zookeeper
       imagePullSecrets:
       - name: "{{ .Values.nsPrefix }}-docker-registry-key"