From 98e69df6c314498004f250b3133359a19d267c71 Mon Sep 17 00:00:00 2001 From: zhangqy Date: Fri, 27 Oct 2023 11:15:28 +0800 Subject: [PATCH 1/3] =?UTF-8?q?[update]=E4=BF=AE=E6=94=B9=E7=8E=AF?= =?UTF-8?q?=E5=A2=83=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker/modules/user/deploy/deploy.yaml | 2 -- docker/modules/websocket/deploy/deploy.yaml | 2 -- 2 files changed, 4 deletions(-) diff --git a/docker/modules/user/deploy/deploy.yaml b/docker/modules/user/deploy/deploy.yaml index 35377a1..3e4c763 100644 --- a/docker/modules/user/deploy/deploy.yaml +++ b/docker/modules/user/deploy/deploy.yaml @@ -39,10 +39,8 @@ spec: protocol: TCP resources: requests: #资源请求的设置 - cpu: 0m #Cpu请求,容器启动的初始可用数量 memory: 600Mi #内存清楚,容器启动的初始可用数量 limits: - cpu: 80m memory: 600Mi volumeMounts: - mountPath: /home/qiuguo/logs diff --git a/docker/modules/websocket/deploy/deploy.yaml b/docker/modules/websocket/deploy/deploy.yaml index 5a01d14..a302d34 100644 --- a/docker/modules/websocket/deploy/deploy.yaml +++ b/docker/modules/websocket/deploy/deploy.yaml @@ -39,10 +39,8 @@ spec: protocol: TCP resources: requests: #资源请求的设置 - cpu: 0m #Cpu请求,容器启动的初始可用数量 memory: 600Mi #内存清楚,容器启动的初始可用数量 limits: - cpu: 80m memory: 600Mi volumeMounts: - mountPath: /home/qiuguo/logs From 096d8c32d4b29e601150ac434b209f9c871fbbb3 Mon Sep 17 00:00:00 2001 From: zhangqy Date: Fri, 27 Oct 2023 14:06:48 +0800 Subject: [PATCH 2/3] =?UTF-8?q?[update]=E5=90=8C=E6=AD=A5=E4=B8=BB?= =?UTF-8?q?=E6=9C=BA=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker/modules/user/deploy/deploy.yaml | 4 ++++ docker/modules/websocket/deploy/deploy.yaml | 4 ++++ docker/qiuguo/gateway/deploy/deploy.yaml | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/docker/modules/user/deploy/deploy.yaml b/docker/modules/user/deploy/deploy.yaml index 3e4c763..d95b970 100644 --- a/docker/modules/user/deploy/deploy.yaml +++ b/docker/modules/user/deploy/deploy.yaml @@ -45,6 +45,10 @@ spec: volumeMounts: - mountPath: /home/qiuguo/logs name: iot-logs + - name: host-time + hostPath: + path: /etc/localtime + type: '' terminationMessagePath: /nfs/data/qiuguo/iot/logs terminationMessagePolicy: File dnsPolicy: ClusterFirst diff --git a/docker/modules/websocket/deploy/deploy.yaml b/docker/modules/websocket/deploy/deploy.yaml index a302d34..e065c7c 100644 --- a/docker/modules/websocket/deploy/deploy.yaml +++ b/docker/modules/websocket/deploy/deploy.yaml @@ -45,6 +45,10 @@ spec: volumeMounts: - mountPath: /home/qiuguo/logs name: iot-logs + - name: host-time + hostPath: + path: /etc/localtime + type: '' terminationMessagePath: /nfs/data/qiuguo/iot/logs terminationMessagePolicy: File dnsPolicy: ClusterFirst diff --git a/docker/qiuguo/gateway/deploy/deploy.yaml b/docker/qiuguo/gateway/deploy/deploy.yaml index 905713e..d357896 100644 --- a/docker/qiuguo/gateway/deploy/deploy.yaml +++ b/docker/qiuguo/gateway/deploy/deploy.yaml @@ -40,6 +40,10 @@ spec: volumeMounts: - mountPath: /home/qiuguo/logs name: iot-logs + - name: host-time + hostPath: + path: /etc/localtime + type: '' terminationMessagePath: /nfs/data/qiuguo/iot/logs terminationMessagePolicy: File dnsPolicy: ClusterFirst From 948eb08484adba1abec36ce6ec4087c709aa7d93 Mon Sep 17 00:00:00 2001 From: zhangqy Date: Fri, 27 Oct 2023 14:10:55 +0800 Subject: [PATCH 3/3] =?UTF-8?q?[update]=E5=90=8C=E6=AD=A5=E4=B8=BB?= =?UTF-8?q?=E6=9C=BA=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker/modules/user/deploy/deploy.yaml | 8 +++++--- docker/modules/websocket/deploy/deploy.yaml | 8 +++++--- docker/qiuguo/gateway/deploy/deploy.yaml | 8 +++++--- 3 files changed, 15 insertions(+), 9 deletions(-) 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