Skip to content

Commit

Permalink
Add priorityClassName to server, worker, scheduler and migration pods
Browse files Browse the repository at this point in the history
  • Loading branch information
sabyrzhan authored and justinclift committed Aug 5, 2024
1 parent ba1cc3f commit 49dfc0b
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 4 deletions.
8 changes: 4 additions & 4 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.3
version: 19.6.2
- name: postgresql
repository: oci://registry-1.docker.io/bitnamicharts
version: 15.2.5
digest: sha256:151965ff63f41c38de182793b57c890da72de2e699c7f69a98e179cfa07ece09
generated: "2024-04-24T09:02:42.314748+03:00"
version: 15.5.17
digest: sha256:af7ef6c98f6157f862429305247440a659c1c0122beaa6c1c08c33105130d378
generated: "2024-07-19T14:45:50.435775+03:00"
3 changes: 3 additions & 0 deletions charts/redash/templates/hook-migrations-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,6 @@ spec:
{{- with .Values.migrations.tolerations }}
tolerations: {{ toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.migrations.priorityClassName }}
priorityClassName: {{ . }}
{{- end }}
3 changes: 3 additions & 0 deletions charts/redash/templates/scheduler-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,6 @@ spec:
tolerations:
{{ toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.scheduler.priorityClassName }}
priorityClassName: {{ . }}
{{- end }}
3 changes: 3 additions & 0 deletions charts/redash/templates/server-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,6 @@ spec:
{{- with .Values.server.tolerations }}
tolerations: {{ toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.server.priorityClassName }}
priorityClassName: {{ . }}
{{- end }}
3 changes: 3 additions & 0 deletions charts/redash/templates/worker-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,7 @@ spec:
{{- with $workerConfig.tolerations }}
tolerations: {{ toYaml . | nindent 8 }}
{{- end }}
{{- with $workerConfig.priorityClassName }}
priorityClassName: {{ . }}
{{- end }}
{{- end }}
12 changes: 12 additions & 0 deletions charts/redash/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,9 @@ server:
# server.volumeMounts -- VolumeMounts for server pod assignment [ref](https://kubernetes.io/docs/concepts/storage/volumes/)
volumeMounts: []

# priorityClassName -- Priority class name for server pod assignment [ref](https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/)
priorityClassName:

service:
# service.annotations -- Annotations to add to the service
annotations: {}
Expand Down Expand Up @@ -450,6 +453,9 @@ worker:
# worker.volumeMounts -- Default VolumeMounts for worker pod assignment [ref](https://kubernetes.io/docs/concepts/storage/volumes/)
volumeMounts: []

# priorityClassName -- Default priority class name for worker pod assignment [ref](https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/)
priorityClassName:

# worker.livenessProbe -- Default worker's liveness probe to ensure workers are running fine
livenessProbe:
exec:
Expand Down Expand Up @@ -517,6 +523,9 @@ scheduler:
# scheduler.volumeMounts -- VolumeMounts for scheduler pod assignment [ref](https://kubernetes.io/docs/concepts/storage/volumes/)
volumeMounts: []

# priorityClassName -- Default priority class name for scheduler pod assignment [ref](https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/)
priorityClassName:

## Configuration for migrations hook
migrations:
# migrations.volumes -- volumes that will be mounted to migrations pods only
Expand Down Expand Up @@ -558,6 +567,9 @@ migrations:
# migrations.podLabels -- Labels for migration pod [ref](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/)
podLabels: {}

# priorityClassName -- Default priority class name for migration pod [ref](https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/)
priorityClassName:

# externalPostgreSQL -- External PostgreSQL configuration. To use an external PostgreSQL instead of the automatically deployed postgresql chart: set postgresql.enabled to false then uncomment and configure the externalPostgreSQL connection URL (e.g. postgresql://user:pass@host:5432/database)
externalPostgreSQL:
# externalPostgreSQLSecret -- Read external PostgreSQL configuration from a secret. This should point at a secret file with a single key which specifies the connection string.
Expand Down

0 comments on commit 49dfc0b

Please sign in to comment.