Skip to content

Commit

Permalink
Add liveness checks
Browse files Browse the repository at this point in the history
Update README file

closes getredash#72
  • Loading branch information
shubhwip authored and AndrewChubatiuk committed Mar 26, 2024
1 parent bb508bb commit ea746ef
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ The following table lists the configurable parameters of the Redash chart and th
| ----------------------------------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| adhocWorker.affinity | object | `{}` | Affinity for ad-hoc worker pod assignment [ref](https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity) |
| adhocWorker.env | object | `{"QUEUES":"queries","WORKERS_COUNT":2}` | Redash ad-hoc worker specific environment variables. |
| adhocWorker.livenessProbe | string | `nil` | Redash ad-hoc worker liveness probe to ensure adhoc workers are running fine. |
| adhocWorker.nodeSelector | object | `{}` | Node labels for ad-hoc worker pod assignment [ref](https://kubernetes.io/docs/user-guide/node-selection/) |
| adhocWorker.podAnnotations | object | `{}` | Annotations for adhoc worker pod assignment [ref](https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/) |
| adhocWorker.podLabels | object | `{}` | Labels for adhoc worker pod assignment [ref](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/) |
Expand All @@ -96,6 +97,7 @@ The following table lists the configurable parameters of the Redash chart and th
| fullnameOverride | string | `""` | |
| genericWorker.affinity | object | `{}` | Affinity for generic worker pod assignment [ref](https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity) |
| genericWorker.env | object | `{"QUEUES":"periodic,emails,default","WORKERS_COUNT":1}` | Redash generic worker specific environment variables. |
| genericWorker.livenessProbe | string | `nil` | Redash generic worker liveness probe to ensure generic workers are running fine. |
| genericWorker.nodeSelector | object | `{}` | Node labels for generic worker pod assignment [ref](https://kubernetes.io/docs/user-guide/node-selection/) |
| genericWorker.podAnnotations | object | `{}` | Annotations for generic worker pod assignment [ref](https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/) |
| genericWorker.podLabels | object | `{}` | Labels for generic worker pod assignment [ref](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/) |
Expand Down Expand Up @@ -235,6 +237,7 @@ The following table lists the configurable parameters of the Redash chart and th
| redis.master.port | int | `6379` | Redis master port to use (when redis chart enabled) |
| scheduledWorker.affinity | object | `{}` | Affinity for scheduled worker pod assignment [ref](https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity) |
| scheduledWorker.env | object | `{"QUEUES":"scheduled_queries,schemas","WORKERS_COUNT":1}` | Redash scheduled worker specific environment variables. |
| scheduledWorker.livenessProbe | string | `nil` | Redash scheduled worker liveness probe to ensure scheduled workers are running fine. |
| scheduledWorker.nodeSelector | object | `{}` | Node labels for scheduled worker pod assignment [ref](https://kubernetes.io/docs/user-guide/node-selection/) |
| scheduledWorker.podAnnotations | object | `{}` | Annotations for scheduled worker pod assignment [ref](https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/) |
| scheduledWorker.podLabels | object | `{}` | Labels for scheduled worker pod assignment [ref](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/) |
Expand Down
2 changes: 2 additions & 0 deletions templates/adhocworker-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ spec:
{{- with .Values.adhocWorker.volumeMounts }}
{{- toYaml . | nindent 12 }}
{{- end }}
livenessProbe:
{{ toYaml .Values.adhocWorker.livenessProbe | indent 12 }}
env:
{{- include "redash.env" . | nindent 12 }}
{{- range $key, $value := .Values.adhocWorker.env }}
Expand Down
2 changes: 2 additions & 0 deletions templates/genericworker-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ spec:
{{- with .Values.genericWorker.volumeMounts }}
{{- toYaml . | nindent 12 }}
{{- end }}
livenessProbe:
{{ toYaml .Values.genericWorker.livenessProbe | indent 12 }}
env:
{{- include "redash.env" . | nindent 12 }}
{{- range $key, $value := .Values.genericWorker.env }}
Expand Down
2 changes: 2 additions & 0 deletions templates/scheduledworker-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ spec:
{{- with .Values.scheduledWorker.volumeMounts }}
{{- toYaml . | nindent 12 }}
{{- end }}
livenessProbe:
{{ toYaml .Values.scheduledWorker.livenessProbe | indent 12 }}
env:
{{- include "redash.env" . | nindent 12 }}
{{- range $key, $value := .Values.scheduledWorker.env }}
Expand Down
30 changes: 30 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,16 @@ adhocWorker:
# adhocWorker.volumeMounts -- VolumeMounts for ad-hoc worker pod assignment [ref](https://kubernetes.io/docs/concepts/storage/volumes/)
volumeMounts: []

# adhocWorker.livenessProbe -- liveness probe to ensure adhoc workers are running fine
livenessProbe:
# exec:
# command:
# - /bin/sh
# - -c
# - /app/bin/docker-entrypoint workers_healthcheck
# initialDelaySeconds: 60
# periodSeconds: 100

## Configuration for Redash scheduled workers
scheduledWorker:
# scheduledWorker.env -- Redash scheduled worker specific environment variables.
Expand Down Expand Up @@ -445,6 +455,16 @@ scheduledWorker:
# scheduledWorker.volumeMounts -- VolumeMounts for scheduled worker pod assignment [ref](https://kubernetes.io/docs/concepts/storage/volumes/)
volumeMounts: []

# scheduledWorker.livenessProbe -- liveness probe to ensure scheduled workers are running fine
livenessProbe:
# exec:
# command:
# - /bin/sh
# - -c
# - /app/bin/docker-entrypoint workers_healthcheck
# initialDelaySeconds: 60
# periodSeconds: 100

## Configuration for Redash scheduler
scheduler:
# scheduler.env -- Redash scheduler specific environment variables.
Expand Down Expand Up @@ -528,6 +548,16 @@ genericWorker:
# genericWorker.volumeMounts -- VolumeMounts for generic worker pod assignment [ref](https://kubernetes.io/docs/concepts/storage/volumes/)
volumeMounts: []

# genericWorker.livenessProbe -- liveness probe to ensure generic workers are running fine
livenessProbe:
# exec:
# command:
# - /bin/sh
# - -c
# - /app/bin/docker-entrypoint workers_healthcheck
# initialDelaySeconds: 60
# periodSeconds: 100

## Configuration for hook-install-job
hookInstallJob:
# hookInstallJob.ttlSecondsAfterFinished -- ttl for install job [ref](https://kubernetes.io/docs/concepts/workloads/controllers/ttlafterfinished/)
Expand Down

0 comments on commit ea746ef

Please sign in to comment.