Skip to content

Commit

Permalink
[FIX] fix resource limit and request
Browse files Browse the repository at this point in the history
  • Loading branch information
CokeLee777 committed Dec 28, 2023
1 parent 037c578 commit 3e506fc
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions deployment-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ spec:
resources:
requests:
memory: "256Mi"
cpu: "500m"
cpu: "125m"
limits:
memory: "512Mi"
cpu: "1000m"
memory: "384Mi"
cpu: "250m"
ports:
- containerPort: 8088
imagePullPolicy: IfNotPresent
Expand All @@ -43,26 +43,26 @@ spec:
httpGet:
path: /actuator/health/readiness
port: 8088
initialDelaySeconds: 30
initialDelaySeconds: 120
periodSeconds: 30
timeoutSeconds: 2
# 애플리케이션이 정상 상태를 유지하고 있는지 지속해서 검사
livenessProbe:
httpGet:
path: /actuator/health/liveness
port: 8088
initialDelaySeconds: 30
initialDelaySeconds: 120
periodSeconds: 30
timeoutSeconds: 2
- name: mysql
image: mysql:8.0.34
resources:
requests:
memory: "256Mi"
cpu: "500m"
cpu: "250m"
limits:
memory: "512Mi"
cpu: "1000m"
cpu: "500m"
ports:
- containerPort: 3306
env:
Expand Down Expand Up @@ -97,8 +97,8 @@ spec:
- name: sns-ebs-pv
persistentVolumeClaim:
claimName: sns-ebs-pvc
# SIGTERM을 받아도 바로 종료되지 않고 90초 뒤에 종료
terminationGracePeriodSeconds: 90
# SIGTERM을 받아도 바로 종료되지 않고 180초 뒤에 종료
terminationGracePeriodSeconds: 180
restartPolicy: Always
affinity:
nodeAffinity:
Expand Down

0 comments on commit 3e506fc

Please sign in to comment.