Skip to content

Commit

Permalink
Merge pull request #1242 from consideRatio/pr/readiness-probe
Browse files Browse the repository at this point in the history
[MRG] helm chart: add readinessProbe and let probes be configurable
  • Loading branch information
consideRatio authored Jan 9, 2021
2 parents 84fc257 + 32e06ee commit cb2fa46
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 3 deletions.
19 changes: 16 additions & 3 deletions helm-chart/binderhub/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,23 @@ spec:
ports:
- containerPort: 8585
name: binder
{{- if .Values.deployment.readinessProbe.enabled }}
readinessProbe:
httpGet:
path: {{ .Values.config.BinderHub.base_url | default "/" }}versions
port: binder
initialDelaySeconds: {{ .Values.deployment.readinessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.deployment.readinessProbe.periodSeconds }}
timeoutSeconds: {{ .Values.deployment.readinessProbe.timeoutSeconds }}
failureThreshold: {{ .Values.deployment.readinessProbe.failureThreshold }}
{{- end }}
{{- if .Values.deployment.livenessProbe.enabled }}
livenessProbe:
httpGet:
path: {{ .Values.config.BinderHub.base_url | default "/" }}versions
port: binder
initialDelaySeconds: 10
periodSeconds: 5
timeoutSeconds: 10
initialDelaySeconds: {{ .Values.deployment.livenessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.deployment.livenessProbe.periodSeconds }}
timeoutSeconds: {{ .Values.deployment.livenessProbe.timeoutSeconds }}
failureThreshold: {{ .Values.deployment.livenessProbe.failureThreshold }}
{{- end }}
12 changes: 12 additions & 0 deletions helm-chart/binderhub/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,18 @@ jupyterhub:
enabled: false

deployment:
readinessProbe:
enabled: true
initialDelaySeconds: 0
periodSeconds: 5
failureThreshold: 1000 # we rely on the liveness probe to resolve issues if needed
timeoutSeconds: 3
livenessProbe:
enabled: true
initialDelaySeconds: 10
periodSeconds: 5
failureThreshold: 3
timeoutSeconds: 10
labels: {}

dind:
Expand Down

0 comments on commit cb2fa46

Please sign in to comment.