Containers time zone sync
[oom.git] / kubernetes / sdnc / templates / db-deployment.yaml
index 8370798..7bc8a75 100644 (file)
@@ -23,6 +23,9 @@ spec:
         imagePullPolicy: {{ .Values.pullPolicy }}
         name: sdnc-db-container
         volumeMounts:
+        - mountPath: /etc/localtime
+          name: localtime
+          readOnly: true
         - mountPath: /var/lib/mysql
           name: sdnc-data
         ports:
@@ -33,6 +36,9 @@ spec:
           initialDelaySeconds: 5
           periodSeconds: 10
       volumes:
+      - name: localtime
+        hostPath:
+          path: /etc/localtime
       - name: sdnc-data
         persistentVolumeClaim:
           claimName: sdnc-db