From bf9df71fec88341da1c02ca85523d6438d9b3c01 Mon Sep 17 00:00:00 2001 From: David Burke Date: Thu, 3 Jun 2021 10:32:29 -0400 Subject: [PATCH] Add configuration for probe paths --- README.md | 8 +++++++- templates/web/deployment.yaml | 4 ++-- values.yaml | 2 ++ 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b03756a..c2bd39c 100644 --- a/README.md +++ b/README.md @@ -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. \ No newline at end of file +Contributions are welcome. Report bugs on GitLab issues. Please only open feature requests that you'd like to implement yourself or pay for. \ No newline at end of file diff --git a/templates/web/deployment.yaml b/templates/web/deployment.yaml index 706bac8..591032f 100644 --- a/templates/web/deployment.yaml +++ b/templates/web/deployment.yaml @@ -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 }} diff --git a/values.yaml b/values.yaml index 6e90721..a9bb2de 100644 --- a/values.yaml +++ b/values.yaml @@ -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