Skip to content

Commit

Permalink
set livenessProbes timeouts, upgraded dependency charts, updated doc,…
Browse files Browse the repository at this point in the history
… added scheduler replicaCount
  • Loading branch information
AndrewChubatiuk committed Apr 24, 2024
1 parent 787de90 commit e6dce74
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
8 changes: 5 additions & 3 deletions charts/redash/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This chart bootstraps a [Redash](https://github.com/getredash/redash) deployment

This is a contributed project developed by volunteers and not officially supported by Redash.

Current chart version is `3.1.0-alpha5`
Current chart version is `3.1.0-alpha6`

* <https://github.com/getredash/redash>

Expand Down Expand Up @@ -203,14 +203,16 @@ The following table lists the configurable parameters of the Redash chart and th
| redis.database | int | `0` | |
| redis.enabled | bool | `true` | Whether to deploy a Redis server to satisfy the applications database requirements. To use an external Redis set this to false and configure the externalRedis parameter. |
| redis.master.service.ports.redis | int | `6379` | |
| redis.replica.replicaCount | int | `0` | |
| scheduler.affinity | object | `{}` | Affinity for scheduler pod assignment [ref](https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity) |
| scheduler.env | object | `{}` | Redash scheduler specific environment variables. |
| scheduler.initContainers | list | `[]` | Redash scheduler init containers configuration. |
| scheduler.livenessProbe | object | `{}` | Liveness probe for scheduler to ensure workers are running fine |
| scheduler.livenessProbe | object | `{"exec":{"command":["/bin/sh","-c","/app/bin/docker-entrypoint workers_healthcheck"]},"initialDelaySeconds":60,"periodSeconds":100,"timeoutSeconds":10}` | Liveness probe for scheduler to ensure workers are running fine |
| scheduler.nodeSelector | object | `{}` | Node labels for scheduler pod assignment [ref](https://kubernetes.io/docs/user-guide/node-selection/) |
| scheduler.podAnnotations | object | `{}` | Annotations for scheduler pod assignment [ref](https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/) |
| scheduler.podLabels | object | `{}` | Labels for scheduler pod assignment [ref](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/) |
| scheduler.podSecurityContext | object | `{}` | Security contexts for scheduler pod assignment [ref](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/) |
| scheduler.replicaCount | int | `1` | Number of scheduler pods to run |
| scheduler.resources | string | `nil` | scheduler resource requests and limits [ref](http://kubernetes.io/docs/user-guide/compute-resources/) |
| scheduler.securityContext | object | `{}` | |
| scheduler.tolerations | list | `[]` | Tolerations for scheduler pod assignment [ref](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/) |
Expand Down Expand Up @@ -244,7 +246,7 @@ The following table lists the configurable parameters of the Redash chart and th
| volumes | list | `[]` | Redash global volumes configuration - applied to all containers |
| worker.affinity | object | `{}` | Default affinity for worker pod assignment [ref](https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity) |
| worker.initContainers | list | `[]` | Worker default init containers configuration |
| worker.livenessProbe | object | `{}` | Default worker's liveness probe to ensure workers are running fine |
| worker.livenessProbe | object | `{"exec":{"command":["/bin/sh","-c","/app/bin/docker-entrypoint workers_healthcheck"]},"initialDelaySeconds":60,"periodSeconds":100,"timeoutSeconds":10}` | Default worker's liveness probe to ensure workers are running fine |
| worker.nodeSelector | object | `{}` | Default node labels for worker pod assignment [ref](https://kubernetes.io/docs/user-guide/node-selection/) |
| worker.podAnnotations | object | `{}` | Default annotations for worker pod assignment [ref](https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/) |
| worker.podLabels | object | `{}` | Default labels for worker pod assignment [ref](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/) |
Expand Down
6 changes: 3 additions & 3 deletions charts/redash/requirements.lock
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
dependencies:
- name: redis
repository: oci://registry-1.docker.io/bitnamicharts
version: 19.1.0
version: 19.1.3
- name: postgresql
repository: oci://registry-1.docker.io/bitnamicharts
version: 15.2.5
digest: sha256:737414ecea2a8b28eb5170ec23dcc35251a77836e71283623d29874c4404159c
generated: "2024-04-11T10:04:30.905003+03:00"
digest: sha256:151965ff63f41c38de182793b57c890da72de2e699c7f69a98e179cfa07ece09
generated: "2024-04-24T09:02:42.314748+03:00"
2 changes: 1 addition & 1 deletion charts/redash/templates/scheduler-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
{{- include "redash.labels" . | nindent 4 }}
app.kubernetes.io/component: scheduler
spec:
replicas: 1
replicas: {{ .Values.scheduler.replicaCount }}
strategy:
type: Recreate
selector:
Expand Down
5 changes: 5 additions & 0 deletions charts/redash/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,7 @@ worker:
- /bin/sh
- -c
- /app/bin/docker-entrypoint workers_healthcheck
timeoutSeconds: 10
initialDelaySeconds: 60
periodSeconds: 100

Expand All @@ -462,6 +463,9 @@ scheduler:
# scheduler.env -- Redash scheduler specific environment variables.
env: {}

# scheduler.replicaCount -- Number of scheduler pods to run
replicaCount: 1

# scheduler.initContainers -- Redash scheduler init containers configuration.
initContainers: []

Expand All @@ -485,6 +489,7 @@ scheduler:
- /bin/sh
- -c
- /app/bin/docker-entrypoint workers_healthcheck
timeoutSeconds: 10
initialDelaySeconds: 60
periodSeconds: 100

Expand Down

0 comments on commit e6dce74

Please sign in to comment.