Skip to content

Commit f87bc3d

Browse files
committed
feature: readinessProbe추가, RollingUpdate 전략 추가
1 parent a8693ef commit f87bc3d

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

devops/helm/mgmg/templates/deployment.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ metadata:
77
{{- include "mgmg.labels" . | nindent 4 }}
88
spec:
99
replicas: {{ .Values.replicaCount }}
10+
strategy:
11+
type: RollingUpdate
12+
rollingUpdate:
13+
maxUnavailable: 0
14+
maxSurge: 1
1015
selector:
1116
matchLabels:
1217
{{- include "mgmg.selectorLabels" . | nindent 6 }}
@@ -25,6 +30,16 @@ spec:
2530
imagePullPolicy: {{ .Values.image.pullPolicy }}
2631
ports:
2732
- containerPort: {{ .Values.service.targetPort }}
33+
readinessProbe:
34+
httpGet:
35+
path: /
36+
port: 3000
37+
initialDelaySeconds: 5
38+
periodSeconds: 10
39+
timeoutSeconds: 5
40+
failureThreshold: 3
41+
successThreshold: 1
42+
2843
env:
2944
{{- toYaml .Values.env | nindent 8 }}
3045
{{- if .Values.configMap }}

0 commit comments

Comments
 (0)