Skip to content

Commit 49dfc0b

Browse files
sabyrzhanjustinclift
authored andcommitted
Add priorityClassName to server, worker, scheduler and migration pods
1 parent ba1cc3f commit 49dfc0b

File tree

6 files changed

+28
-4
lines changed

6 files changed

+28
-4
lines changed

charts/redash/requirements.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
dependencies:
22
- name: redis
33
repository: oci://registry-1.docker.io/bitnamicharts
4-
version: 19.1.3
4+
version: 19.6.2
55
- name: postgresql
66
repository: oci://registry-1.docker.io/bitnamicharts
7-
version: 15.2.5
8-
digest: sha256:151965ff63f41c38de182793b57c890da72de2e699c7f69a98e179cfa07ece09
9-
generated: "2024-04-24T09:02:42.314748+03:00"
7+
version: 15.5.17
8+
digest: sha256:af7ef6c98f6157f862429305247440a659c1c0122beaa6c1c08c33105130d378
9+
generated: "2024-07-19T14:45:50.435775+03:00"

charts/redash/templates/hook-migrations-job.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,6 @@ spec:
6868
{{- with .Values.migrations.tolerations }}
6969
tolerations: {{ toYaml . | nindent 8 }}
7070
{{- end }}
71+
{{- with .Values.migrations.priorityClassName }}
72+
priorityClassName: {{ . }}
73+
{{- end }}

charts/redash/templates/scheduler-deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,6 @@ spec:
7474
tolerations:
7575
{{ toYaml . | nindent 8 }}
7676
{{- end }}
77+
{{- with .Values.scheduler.priorityClassName }}
78+
priorityClassName: {{ . }}
79+
{{- end }}

charts/redash/templates/server-deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,6 @@ spec:
7777
{{- with .Values.server.tolerations }}
7878
tolerations: {{ toYaml . | nindent 8 }}
7979
{{- end }}
80+
{{- with .Values.server.priorityClassName }}
81+
priorityClassName: {{ . }}
82+
{{- end }}

charts/redash/templates/worker-deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,7 @@ spec:
6969
{{- with $workerConfig.tolerations }}
7070
tolerations: {{ toYaml . | nindent 8 }}
7171
{{- end }}
72+
{{- with $workerConfig.priorityClassName }}
73+
priorityClassName: {{ . }}
74+
{{- end }}
7275
{{- end }}

charts/redash/values.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,9 @@ server:
355355
# server.volumeMounts -- VolumeMounts for server pod assignment [ref](https://kubernetes.io/docs/concepts/storage/volumes/)
356356
volumeMounts: []
357357

358+
# priorityClassName -- Priority class name for server pod assignment [ref](https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/)
359+
priorityClassName:
360+
358361
service:
359362
# service.annotations -- Annotations to add to the service
360363
annotations: {}
@@ -450,6 +453,9 @@ worker:
450453
# worker.volumeMounts -- Default VolumeMounts for worker pod assignment [ref](https://kubernetes.io/docs/concepts/storage/volumes/)
451454
volumeMounts: []
452455

456+
# priorityClassName -- Default priority class name for worker pod assignment [ref](https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/)
457+
priorityClassName:
458+
453459
# worker.livenessProbe -- Default worker's liveness probe to ensure workers are running fine
454460
livenessProbe:
455461
exec:
@@ -517,6 +523,9 @@ scheduler:
517523
# scheduler.volumeMounts -- VolumeMounts for scheduler pod assignment [ref](https://kubernetes.io/docs/concepts/storage/volumes/)
518524
volumeMounts: []
519525

526+
# priorityClassName -- Default priority class name for scheduler pod assignment [ref](https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/)
527+
priorityClassName:
528+
520529
## Configuration for migrations hook
521530
migrations:
522531
# migrations.volumes -- volumes that will be mounted to migrations pods only
@@ -558,6 +567,9 @@ migrations:
558567
# migrations.podLabels -- Labels for migration pod [ref](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/)
559568
podLabels: {}
560569

570+
# priorityClassName -- Default priority class name for migration pod [ref](https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/)
571+
priorityClassName:
572+
561573
# 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)
562574
externalPostgreSQL:
563575
# externalPostgreSQLSecret -- Read external PostgreSQL configuration from a secret. This should point at a secret file with a single key which specifies the connection string.

0 commit comments

Comments
 (0)