Skip to content

Commit 4f4d81c

Browse files
masonCheinTian
authored andcommitted
feat: add readinessProbe to server, rproxy, moderation
1 parent e2e691a commit 4f4d81c

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

charts/csghub/templates/deployment-gateway.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,15 @@ spec:
122122
port: 8083
123123
initialDelaySeconds: 20
124124
periodSeconds: 10
125+
readinessProbe:
126+
httpGet:
127+
path: /healthz
128+
port: 8083
129+
scheme: HTTP
130+
initialDelaySeconds: 10
131+
periodSeconds: 5
132+
timeoutSeconds: 2
133+
failureThreshold: 3
125134
securityContext:
126135
{{- .Values.gateway.podSecurityContext | toYaml | nindent 12 }}
127136
- name: rproxy-nginx
@@ -197,6 +206,15 @@ spec:
197206
port: 8089
198207
initialDelaySeconds: 20
199208
periodSeconds: 10
209+
readinessProbe:
210+
httpGet:
211+
path: /healthz
212+
port: 8089
213+
scheme: HTTP
214+
initialDelaySeconds: 10
215+
periodSeconds: 5
216+
timeoutSeconds: 2
217+
failureThreshold: 3
200218
securityContext:
201219
{{- .Values.gateway.podSecurityContext | toYaml | nindent 12 }}
202220
{{- end }}

charts/csghub/templates/deployment-server.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,15 @@ spec:
180180
port: 8080
181181
initialDelaySeconds: 20
182182
periodSeconds: 10
183+
readinessProbe:
184+
httpGet:
185+
path: /healthz
186+
port: 8080
187+
scheme: HTTP
188+
initialDelaySeconds: 10
189+
periodSeconds: 5
190+
timeoutSeconds: 2
191+
failureThreshold: 3
183192
securityContext:
184193
{{- .Values.server.podSecurityContext | toYaml | nindent 12 }}
185194
volumeMounts:

0 commit comments

Comments
 (0)