From a58f35ee0a2eb3d9a8555ecce8bd9c04ff0ea4fa Mon Sep 17 00:00:00 2001 From: chenbowen Date: Mon, 22 Sep 2025 15:45:48 +0800 Subject: [PATCH] =?UTF-8?q?1.=20=E8=B0=83=E6=95=B4=E6=9C=8D=E5=8A=A1?= =?UTF-8?q?=E7=9A=84=E8=B5=84=E6=BA=90=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deployment.yaml | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/deployment.yaml b/deployment.yaml index dcf74958..fc45a12d 100644 --- a/deployment.yaml +++ b/deployment.yaml @@ -25,6 +25,13 @@ spec: value: Asia/Shanghai ports: - containerPort: 48080 + resources: + requests: + cpu: "1000m" + memory: "1024Mi" + limits: + cpu: "1000m" + memory: "2048Mi" --- apiVersion: v1 kind: Service @@ -84,6 +91,13 @@ spec: initialDelaySeconds: 30 periodSeconds: 10 failureThreshold: 5 + resources: + requests: + cpu: "1000m" + memory: "1024Mi" + limits: + cpu: "1000m" + memory: "2048Mi" terminationGracePeriodSeconds: 30 strategy: type: RollingUpdate @@ -148,6 +162,13 @@ spec: initialDelaySeconds: 30 periodSeconds: 10 failureThreshold: 5 + resources: + requests: + cpu: "1000m" + memory: "1024Mi" + limits: + cpu: "1000m" + memory: "2048Mi" terminationGracePeriodSeconds: 30 strategy: type: RollingUpdate @@ -212,6 +233,13 @@ spec: initialDelaySeconds: 30 periodSeconds: 10 failureThreshold: 5 + resources: + requests: + cpu: "1000m" + memory: "1024Mi" + limits: + cpu: "1000m" + memory: "2048Mi" terminationGracePeriodSeconds: 30 strategy: type: RollingUpdate @@ -276,6 +304,13 @@ spec: initialDelaySeconds: 30 periodSeconds: 10 failureThreshold: 5 + resources: + requests: + cpu: "1000m" + memory: "1024Mi" + limits: + cpu: "1000m" + memory: "2048Mi" terminationGracePeriodSeconds: 30 strategy: type: RollingUpdate @@ -340,6 +375,13 @@ spec: initialDelaySeconds: 30 periodSeconds: 10 failureThreshold: 5 + resources: + requests: + cpu: "1000m" + memory: "1024Mi" + limits: + cpu: "1000m" + memory: "2048Mi" terminationGracePeriodSeconds: 30 strategy: type: RollingUpdate