diff --git a/docker/modules/user/deploy/deploy.yaml b/docker/modules/user/deploy/deploy.yaml index d95b970..bea865a 100644 --- a/docker/modules/user/deploy/deploy.yaml +++ b/docker/modules/user/deploy/deploy.yaml @@ -46,9 +46,8 @@ spec: - mountPath: /home/qiuguo/logs name: iot-logs - name: host-time - hostPath: - path: /etc/localtime - type: '' + readOnly: true + mountPath: /etc/localtime terminationMessagePath: /nfs/data/qiuguo/iot/logs terminationMessagePolicy: File dnsPolicy: ClusterFirst @@ -58,6 +57,9 @@ spec: - name: iot-logs hostPath: path: /nfs/data/qiuguo/iot/logs + - name: host-time + hostPath: + path: /etc/localtime --- apiVersion: v1 kind: Service diff --git a/docker/modules/websocket/deploy/deploy.yaml b/docker/modules/websocket/deploy/deploy.yaml index e065c7c..7a0a58f 100644 --- a/docker/modules/websocket/deploy/deploy.yaml +++ b/docker/modules/websocket/deploy/deploy.yaml @@ -46,9 +46,8 @@ spec: - mountPath: /home/qiuguo/logs name: iot-logs - name: host-time - hostPath: - path: /etc/localtime - type: '' + readOnly: true + mountPath: /etc/localtime terminationMessagePath: /nfs/data/qiuguo/iot/logs terminationMessagePolicy: File dnsPolicy: ClusterFirst @@ -58,6 +57,9 @@ spec: - name: iot-logs hostPath: path: /nfs/data/qiuguo/iot/logs + - name: host-time + hostPath: + path: /etc/localtime --- apiVersion: v1 kind: Service diff --git a/docker/qiuguo/gateway/deploy/deploy.yaml b/docker/qiuguo/gateway/deploy/deploy.yaml index d357896..06b165d 100644 --- a/docker/qiuguo/gateway/deploy/deploy.yaml +++ b/docker/qiuguo/gateway/deploy/deploy.yaml @@ -41,9 +41,8 @@ spec: - mountPath: /home/qiuguo/logs name: iot-logs - name: host-time - hostPath: - path: /etc/localtime - type: '' + readOnly: true + mountPath: /etc/localtime terminationMessagePath: /nfs/data/qiuguo/iot/logs terminationMessagePolicy: File dnsPolicy: ClusterFirst @@ -53,6 +52,9 @@ spec: - name: iot-logs hostPath: path: /nfs/data/qiuguo/iot/logs + - name: host-time + hostPath: + path: /etc/localtime --- apiVersion: v1 kind: Service