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