diff --git a/docker/modules/user/deploy/deploy.yaml b/docker/modules/user/deploy/deploy.yaml index 35377a1..bea865a 100644 --- a/docker/modules/user/deploy/deploy.yaml +++ b/docker/modules/user/deploy/deploy.yaml @@ -39,14 +39,15 @@ spec: protocol: TCP resources: requests: #资源请求的设置 - cpu: 0m #Cpu请求,容器启动的初始可用数量 memory: 600Mi #内存清楚,容器启动的初始可用数量 limits: - cpu: 80m memory: 600Mi volumeMounts: - mountPath: /home/qiuguo/logs name: iot-logs + - name: host-time + readOnly: true + mountPath: /etc/localtime terminationMessagePath: /nfs/data/qiuguo/iot/logs terminationMessagePolicy: File dnsPolicy: ClusterFirst @@ -56,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 5a01d14..7a0a58f 100644 --- a/docker/modules/websocket/deploy/deploy.yaml +++ b/docker/modules/websocket/deploy/deploy.yaml @@ -39,14 +39,15 @@ spec: protocol: TCP resources: requests: #资源请求的设置 - cpu: 0m #Cpu请求,容器启动的初始可用数量 memory: 600Mi #内存清楚,容器启动的初始可用数量 limits: - cpu: 80m memory: 600Mi volumeMounts: - mountPath: /home/qiuguo/logs name: iot-logs + - name: host-time + readOnly: true + mountPath: /etc/localtime terminationMessagePath: /nfs/data/qiuguo/iot/logs terminationMessagePolicy: File dnsPolicy: ClusterFirst @@ -56,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 905713e..06b165d 100644 --- a/docker/qiuguo/gateway/deploy/deploy.yaml +++ b/docker/qiuguo/gateway/deploy/deploy.yaml @@ -40,6 +40,9 @@ spec: volumeMounts: - mountPath: /home/qiuguo/logs name: iot-logs + - name: host-time + readOnly: true + mountPath: /etc/localtime terminationMessagePath: /nfs/data/qiuguo/iot/logs terminationMessagePolicy: File dnsPolicy: ClusterFirst @@ -49,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