1. 调整服务的资源限制
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user