Containers time zone sync
[oom.git] / kubernetes / portal / templates / portal-mariadb-deployment.yaml
index 16c0d7e..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,6 +37,9 @@ spec:
           initialDelaySeconds: 5
           periodSeconds: 10
       volumes:
+      - name: localtime
+        hostPath:
+          path: /etc/localtime
       - name: portal-mariadb-data
         persistentVolumeClaim:
           claimName: portal-db