diff --git a/charts/trino/README.md b/charts/trino/README.md index f9bc0bde..e2d89273 100644 --- a/charts/trino/README.md +++ b/charts/trino/README.md @@ -598,6 +598,7 @@ Fast distributed SQL query engine for big data analytics that helps you explore - name: extras mountPath: /usr/share/extras readOnly: true +* `coordinator.priorityClassName` - string, default: `nil` * `coordinator.annotations` - object, default: `{}` Annotations to add to the coordinator pod. @@ -764,6 +765,7 @@ Fast distributed SQL query engine for big data analytics that helps you explore mountPath: /usr/share/extras readOnly: true ``` +* `worker.priorityClassName` - string, default: `nil` * `worker.annotations` - object, default: `{}` Annotations to add to the worker pods. diff --git a/charts/trino/templates/deployment-coordinator.yaml b/charts/trino/templates/deployment-coordinator.yaml index 87a05bac..996c25e0 100644 --- a/charts/trino/templates/deployment-coordinator.yaml +++ b/charts/trino/templates/deployment-coordinator.yaml @@ -47,6 +47,9 @@ spec: {{- tpl (toYaml .Values.coordinator.labels) . | nindent 8 }} {{- end }} spec: + {{- if .Values.coordinator.priorityClassName }} + priorityClassName: {{ .Values.coordinator.priorityClassName }} + {{- end }} serviceAccountName: {{ include "trino.serviceAccountName" . }} {{- with .Values.securityContext }} securityContext: diff --git a/charts/trino/templates/deployment-worker.yaml b/charts/trino/templates/deployment-worker.yaml index d60121e0..d9f2f208 100644 --- a/charts/trino/templates/deployment-worker.yaml +++ b/charts/trino/templates/deployment-worker.yaml @@ -49,6 +49,9 @@ spec: {{- tpl (toYaml .Values.worker.labels) . | nindent 8 }} {{- end }} spec: + {{- if .Values.worker.priorityClassName }} + priorityClassName: {{ .Values.worker.priorityClassName }} + {{- end }} serviceAccountName: {{ include "trino.serviceAccountName" . }} {{- with .Values.securityContext }} securityContext: diff --git a/charts/trino/values.yaml b/charts/trino/values.yaml index 631d39ca..17a58e64 100644 --- a/charts/trino/values.yaml +++ b/charts/trino/values.yaml @@ -731,6 +731,8 @@ coordinator: # mountPath: /usr/share/extras # readOnly: true + priorityClassName: ~ + annotations: {} # coordinator.annotations -- Annotations to add to the coordinator pod. # @raw @@ -954,6 +956,8 @@ worker: # readOnly: true # ``` + priorityClassName: ~ + annotations: {} # worker.annotations -- Annotations to add to the worker pods. # @raw