Skip to content

Commit

Permalink
Merge pull request #341 from RasaHQ/infra-403
Browse files Browse the repository at this point in the history
Add rasa readiness probe and configurable path
miraai authored Jun 20, 2023
2 parents 37afd2c + a3ab7c8 commit ad4f261
Showing 4 changed files with 27 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/rasa-x/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
apiVersion: v2

version: "4.5.18"
version: "4.5.19"

appVersion: "1.2.2"

11 changes: 10 additions & 1 deletion charts/rasa-x/templates/rasa-deployments.yaml
Original file line number Diff line number Diff line change
@@ -59,7 +59,16 @@ spec:
{{- if or $.Values.rasa.livenessProbe.enabled (not (hasKey $.Values.rasa.livenessProbe "enabled")) }}
livenessProbe:
httpGet:
path: "/"
path: {{ $.Values.rasa.livenessProbe.path }}
port: "http"
scheme: {{ default "HTTP" $.Values.rasa.livenessProbe.scheme }}
initialDelaySeconds: {{ $.Values.rasa.livenessProbe.initialProbeDelay }}
failureThreshold: 10
{{- end }}
{{- if or $.Values.rasa.readinessProbe.enabled (not (hasKey $.Values.rasa.readinessProbe "enabled")) }}
readinessProbe:
httpGet:
path: {{ $.Values.rasa.readinessProbe.path }}
port: "http"
scheme: {{ default "HTTP" $.Values.rasa.livenessProbe.scheme }}
initialDelaySeconds: {{ $.Values.rasa.livenessProbe.initialProbeDelay }}
4 changes: 2 additions & 2 deletions charts/rasa-x/templates/rasa-x-deployment.yaml
Original file line number Diff line number Diff line change
@@ -69,7 +69,7 @@ spec:
{{- if or .Values.rasax.livenessProbe.enabled (not (hasKey .Values.rasax.livenessProbe "enabled")) }}
livenessProbe:
httpGet:
path: "/"
path: {{ .Values.rasax.livenessProbe.path }}
port: "http"
scheme: {{ default "HTTP" .Values.rasax.livenessProbe.scheme }}
initialDelaySeconds: {{ .Values.rasax.livenessProbe.initialProbeDelay }}
@@ -78,7 +78,7 @@ spec:
{{- if or .Values.rasax.readinessProbe.enabled (not (hasKey .Values.rasax.readinessProbe "enabled")) }}
readinessProbe:
httpGet:
path: "/"
path: {{ .Values.rasax.readinessProbe.path }}
port: "http"
scheme: {{ default "HTTP" .Values.rasax.readinessProbe.scheme }}
initialDelaySeconds: {{ .Values.rasax.readinessProbe.initialProbeDelay }}
14 changes: 14 additions & 0 deletions charts/rasa-x/values.yaml
Original file line number Diff line number Diff line change
@@ -54,13 +54,17 @@ rasax:
# livenessProbe checks whether Rasa Enterprise needs to be restarted
livenessProbe:
enabled: true
# liveness probe path
path: "/"
# initialProbeDelay for the `livenessProbe`
initialProbeDelay: 10
# scheme to be used by the `livenessProbe`
scheme: "HTTP"
# readinessProbe checks whether rasa Enterprise can receive traffic
readinessProbe:
enabled: true
# readiness probe path
path: "/"
# initialProbeDelay for the `readinessProbe`
initialProbeDelay: 10
# scheme to be used by the `readinessProbe`
@@ -183,10 +187,20 @@ rasa:
jaegerSidecar: "false"
livenessProbe:
enabled: true
# liveness probe path
path: "/"
# initialProbeDelay for the `livenessProbe`
initialProbeDelay: 10
# scheme to be used by the `livenessProbe`
scheme: "HTTP"
readinessProbe:
enabled: true
# readiness probe path
path: "/"
# initialProbeDelay for the `readinessProbe`
initialProbeDelay: 10
# scheme to be used by the `readinessProbe`
scheme: "HTTP"
# useLoginDatabase will use the Rasa Enterprise database to log in and create the database
# for the tracker store. If `false` the tracker store database must have been created
# previously.

0 comments on commit ad4f261

Please sign in to comment.