Add configuration for probe paths
This commit is contained in:
parent
51a5f0e276
commit
bf9df71fec
|
@ -19,6 +19,12 @@ urlpatterns = [
|
|||
...
|
||||
```
|
||||
|
||||
Set the value web.livenessProbe.path and web.readinessProbe.path to change the URL.
|
||||
|
||||
## Run commands
|
||||
|
||||
This helm chart will set a "role" environment variable to web, worker, or beat. It's up to your Docker image to read this variable and run the correct command.
|
||||
|
||||
# Usage
|
||||
|
||||
1. Add our Helm chart repo `helm repo add django https://burke-software.gitlab.io/django-helm-chart/`
|
||||
|
@ -55,4 +61,4 @@ Commercial support is available - email info@burkesoftware.com
|
|||
|
||||
# Contributing
|
||||
|
||||
Contributions are welcome. Report bugs on gitlab issues. Please only open feature requests that you'd like to implement yourself or pay for.
|
||||
Contributions are welcome. Report bugs on GitLab issues. Please only open feature requests that you'd like to implement yourself or pay for.
|
|
@ -43,14 +43,14 @@ spec:
|
|||
livenessProbe:
|
||||
failureThreshold: {{ .Values.web.livenessProbe.failureThreshold }}
|
||||
httpGet:
|
||||
path: /_health/
|
||||
path: {{ .Values.web.livenessProbe.path | default "/_health/" }}
|
||||
port: 8080
|
||||
initialDelaySeconds: {{ .Values.web.livenessProbe.initialDelaySeconds }}
|
||||
timeoutSeconds: {{ .Values.web.livenessProbe.timeoutSeconds }}
|
||||
readinessProbe:
|
||||
failureThreshold: {{ .Values.web.readinessProbe.failureThreshold }}
|
||||
httpGet:
|
||||
path: /_health/
|
||||
path: {{ .Values.web.readinessProbe.path | default "/_health/" }}
|
||||
port: 8080
|
||||
initialDelaySeconds: {{ .Values.web.readinessProbe.initialDelaySeconds }}
|
||||
timeoutSeconds: {{ .Values.web.readinessProbe.timeoutSeconds }}
|
||||
|
|
|
@ -54,10 +54,12 @@ web:
|
|||
failureThreshold: 5
|
||||
initialDelaySeconds: 5
|
||||
timeoutSeconds: 2
|
||||
path: "/_health/"
|
||||
readinessProbe:
|
||||
failureThreshold: 10
|
||||
initialDelaySeconds: 5
|
||||
timeoutSeconds: 2
|
||||
path: "/_health/"
|
||||
service:
|
||||
type: ClusterIP
|
||||
port: 80
|
||||
|
|
Loading…
Reference in a new issue