Skip to content

Commit

Permalink
feat: add livenessProbe and readinessProbe to api, worker, frontend, …
Browse files Browse the repository at this point in the history
…and sandbox (#78)

* add livenessProbe and readinessProbe to api, worker, frontend, and sandbox

* bump version 0.3.2
  • Loading branch information
majian159 authored Apr 23, 2024
1 parent 670368c commit ea0af9a
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 25 deletions.
2 changes: 1 addition & 1 deletion charts/dify/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.3.2
version: 0.3.3

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
76 changes: 52 additions & 24 deletions charts/dify/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,24 @@ spec:
- name: http
containerPort: {{ .Values.api.containerPort }}
protocol: TCP
# livenessProbe:
# httpGet:
# path: /
# port: http
# readinessProbe:
# httpGet:
# path: /
# port: http
livenessProbe:
httpGet:
path: /health
port: http
initialDelaySeconds: 30
timeoutSeconds: 5
periodSeconds: 30
successThreshold: 1
failureThreshold: 2
readinessProbe:
httpGet:
path: /health
port: http
initialDelaySeconds: 10
timeoutSeconds: 5
periodSeconds: 5
successThreshold: 1
failureThreshold: 10
resources:
{{- toYaml .Values.api.resources | nindent 12 }}
{{- with .Values.volumes }}
Expand Down Expand Up @@ -227,14 +237,24 @@ spec:
- name: http
containerPort: {{ .Values.frontend.containerPort }}
protocol: TCP
# livenessProbe:
# httpGet:
# path: /
# port: http
# readinessProbe:
# httpGet:
# path: /
# port: http
livenessProbe:
httpGet:
path: /apps
port: http
initialDelaySeconds: 30
timeoutSeconds: 5
periodSeconds: 30
successThreshold: 1
failureThreshold: 2
readinessProbe:
httpGet:
path: /apps
port: http
initialDelaySeconds: 1
timeoutSeconds: 5
periodSeconds: 5
successThreshold: 1
failureThreshold: 10
resources:
{{- toYaml .Values.frontend.resources | nindent 12 }}
{{- with .Values.frontend.nodeSelector }}
Expand Down Expand Up @@ -311,14 +331,22 @@ spec:
- name: http
containerPort: {{ .Values.sandbox.containerPort }}
protocol: TCP
# livenessProbe:
# httpGet:
# path: /
# port: http
# readinessProbe:
# httpGet:
# path: /
# port: http
livenessProbe:
tcpSocket:
port: http
initialDelaySeconds: 30
timeoutSeconds: 5
periodSeconds: 30
successThreshold: 1
failureThreshold: 2
readinessProbe:
tcpSocket:
port: http
initialDelaySeconds: 1
timeoutSeconds: 5
periodSeconds: 5
successThreshold: 1
failureThreshold: 10
resources:
{{- toYaml .Values.sandbox.resources | nindent 12 }}
{{- with .Values.sandbox.nodeSelector }}
Expand Down

0 comments on commit ea0af9a

Please sign in to comment.