Skip to content

Commit 01b8c3b

Browse files
committed
feat: add livenessProbe and readinessProbe to api, worker, frontend, and sandbox
* add livenessProbe and readinessProbe to api, worker, frontend, and sandbox * bump version 0.3.2
1 parent 670368c commit 01b8c3b

File tree

2 files changed

+53
-25
lines changed

2 files changed

+53
-25
lines changed

charts/dify/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ type: application
2020
# This is the chart version. This version number should be incremented each time you make changes
2121
# to the chart and its templates, including the app version.
2222
# Versions are expected to follow Semantic Versioning (https://semver.org/)
23-
version: 0.3.2
23+
version: 0.3.3
2424

2525
# This is the version number of the application being deployed. This version number should be
2626
# incremented each time you make changes to the application. Versions are not expected to

charts/dify/templates/deployment.yaml

Lines changed: 52 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,24 @@ spec:
7272
- name: http
7373
containerPort: {{ .Values.api.containerPort }}
7474
protocol: TCP
75-
# livenessProbe:
76-
# httpGet:
77-
# path: /
78-
# port: http
79-
# readinessProbe:
80-
# httpGet:
81-
# path: /
82-
# port: http
75+
livenessProbe:
76+
httpGet:
77+
path: /health
78+
port: http
79+
initialDelaySeconds: 30
80+
timeoutSeconds: 5
81+
periodSeconds: 30
82+
successThreshold: 1
83+
failureThreshold: 2
84+
readinessProbe:
85+
httpGet:
86+
path: /health
87+
port: http
88+
initialDelaySeconds: 10
89+
timeoutSeconds: 5
90+
periodSeconds: 5
91+
successThreshold: 1
92+
failureThreshold: 10
8393
resources:
8494
{{- toYaml .Values.api.resources | nindent 12 }}
8595
{{- with .Values.volumes }}
@@ -227,14 +237,24 @@ spec:
227237
- name: http
228238
containerPort: {{ .Values.frontend.containerPort }}
229239
protocol: TCP
230-
# livenessProbe:
231-
# httpGet:
232-
# path: /
233-
# port: http
234-
# readinessProbe:
235-
# httpGet:
236-
# path: /
237-
# port: http
240+
livenessProbe:
241+
httpGet:
242+
path: /apps
243+
port: http
244+
initialDelaySeconds: 30
245+
timeoutSeconds: 5
246+
periodSeconds: 30
247+
successThreshold: 1
248+
failureThreshold: 2
249+
readinessProbe:
250+
httpGet:
251+
path: /apps
252+
port: http
253+
initialDelaySeconds: 1
254+
timeoutSeconds: 5
255+
periodSeconds: 5
256+
successThreshold: 1
257+
failureThreshold: 10
238258
resources:
239259
{{- toYaml .Values.frontend.resources | nindent 12 }}
240260
{{- with .Values.frontend.nodeSelector }}
@@ -311,14 +331,22 @@ spec:
311331
- name: http
312332
containerPort: {{ .Values.sandbox.containerPort }}
313333
protocol: TCP
314-
# livenessProbe:
315-
# httpGet:
316-
# path: /
317-
# port: http
318-
# readinessProbe:
319-
# httpGet:
320-
# path: /
321-
# port: http
334+
livenessProbe:
335+
tcpSocket:
336+
port: http
337+
initialDelaySeconds: 30
338+
timeoutSeconds: 5
339+
periodSeconds: 30
340+
successThreshold: 1
341+
failureThreshold: 2
342+
readinessProbe:
343+
tcpSocket:
344+
port: http
345+
initialDelaySeconds: 1
346+
timeoutSeconds: 5
347+
periodSeconds: 5
348+
successThreshold: 1
349+
failureThreshold: 10
322350
resources:
323351
{{- toYaml .Values.sandbox.resources | nindent 12 }}
324352
{{- with .Values.sandbox.nodeSelector }}

0 commit comments

Comments
 (0)