Containers time zone sync
[oom.git] / kubernetes / portal / templates / portal-mariadb-deployment.yaml
index a31c6a2..f4e46ab 100755 (executable)
@@ -23,6 +23,9 @@ spec:
         - name: MYSQL_ROOT_PASSWORD
           value: password
         volumeMounts:
+        - mountPath: /etc/localtime
+          name: localtime
+          readOnly: true
         - mountPath: /var/lib/mysql
           name: portal-mariadb-data
         ports:
@@ -34,8 +37,11 @@ spec:
           initialDelaySeconds: 5
           periodSeconds: 10
       volumes:
-      - name: portal-mariadb-data
+      - name: localtime
         hostPath:
-          path: /dockerdata-nfs/{{ .Values.nsPrefix }}/portal/mariadb/data
+          path: /etc/localtime
+      - name: portal-mariadb-data
+        persistentVolumeClaim:
+          claimName: portal-db
       imagePullSecrets:
       - name: "{{ .Values.nsPrefix }}-docker-registry-key"