Add configuration for probe paths
This commit is contained in:
		
							parent
							
								
									51a5f0e276
								
							
						
					
					
						commit
						bf9df71fec
					
				
					 3 changed files with 11 additions and 3 deletions
				
			
		| 
						 | 
					@ -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
 | 
					# Usage
 | 
				
			||||||
 | 
					
 | 
				
			||||||
1. Add our Helm chart repo `helm repo add django https://burke-software.gitlab.io/django-helm-chart/`
 | 
					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
 | 
					# 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:
 | 
					          livenessProbe:
 | 
				
			||||||
            failureThreshold: {{ .Values.web.livenessProbe.failureThreshold }}
 | 
					            failureThreshold: {{ .Values.web.livenessProbe.failureThreshold }}
 | 
				
			||||||
            httpGet:
 | 
					            httpGet:
 | 
				
			||||||
              path: /_health/
 | 
					              path: {{ .Values.web.livenessProbe.path | default "/_health/" }}
 | 
				
			||||||
              port: 8080
 | 
					              port: 8080
 | 
				
			||||||
            initialDelaySeconds: {{ .Values.web.livenessProbe.initialDelaySeconds }}
 | 
					            initialDelaySeconds: {{ .Values.web.livenessProbe.initialDelaySeconds }}
 | 
				
			||||||
            timeoutSeconds: {{ .Values.web.livenessProbe.timeoutSeconds }}
 | 
					            timeoutSeconds: {{ .Values.web.livenessProbe.timeoutSeconds }}
 | 
				
			||||||
          readinessProbe:
 | 
					          readinessProbe:
 | 
				
			||||||
            failureThreshold: {{ .Values.web.readinessProbe.failureThreshold }}
 | 
					            failureThreshold: {{ .Values.web.readinessProbe.failureThreshold }}
 | 
				
			||||||
            httpGet:
 | 
					            httpGet:
 | 
				
			||||||
              path: /_health/
 | 
					              path: {{ .Values.web.readinessProbe.path | default "/_health/" }}
 | 
				
			||||||
              port: 8080
 | 
					              port: 8080
 | 
				
			||||||
            initialDelaySeconds: {{ .Values.web.readinessProbe.initialDelaySeconds }}
 | 
					            initialDelaySeconds: {{ .Values.web.readinessProbe.initialDelaySeconds }}
 | 
				
			||||||
            timeoutSeconds: {{ .Values.web.readinessProbe.timeoutSeconds }}
 | 
					            timeoutSeconds: {{ .Values.web.readinessProbe.timeoutSeconds }}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -54,10 +54,12 @@ web:
 | 
				
			||||||
    failureThreshold: 5
 | 
					    failureThreshold: 5
 | 
				
			||||||
    initialDelaySeconds: 5
 | 
					    initialDelaySeconds: 5
 | 
				
			||||||
    timeoutSeconds: 2
 | 
					    timeoutSeconds: 2
 | 
				
			||||||
 | 
					    path: "/_health/"
 | 
				
			||||||
  readinessProbe:
 | 
					  readinessProbe:
 | 
				
			||||||
    failureThreshold: 10
 | 
					    failureThreshold: 10
 | 
				
			||||||
    initialDelaySeconds: 5
 | 
					    initialDelaySeconds: 5
 | 
				
			||||||
    timeoutSeconds: 2
 | 
					    timeoutSeconds: 2
 | 
				
			||||||
 | 
					    path: "/_health/"
 | 
				
			||||||
  service:
 | 
					  service:
 | 
				
			||||||
    type: ClusterIP
 | 
					    type: ClusterIP
 | 
				
			||||||
    port: 80
 | 
					    port: 80
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue