Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/retool/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: retool
description: A Helm chart for Kubernetes
type: application
version: 6.6.0
version: 6.6.1
maintainers:
- name: Retool Engineering
email: engineering+helm@retool.com
Expand Down
4 changes: 3 additions & 1 deletion charts/retool/templates/deployment_backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ spec:
spec:
serviceAccountName: {{ template "retool.serviceAccountName" . }}
{{- if .Values.priorityClassName }}
priorityClassName: "{{ .Values.priorityClassName }}"
priorityClassName: {{ .Values.priorityClassName | quote }}
{{- else }}
priorityClassName: {{ printf "%s-backend-priority" (include "retool.fullname" .) | quote }}
{{- end }}
{{- with .Values.hostAliases }}
hostAliases:
Expand Down
4 changes: 3 additions & 1 deletion charts/retool/templates/deployment_jobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ spec:
spec:
serviceAccountName: {{ template "retool.serviceAccountName" . }}
{{- if .Values.priorityClassName }}
priorityClassName: "{{ .Values.priorityClassName }}"
priorityClassName: {{ .Values.priorityClassName | quote }}
{{- else }}
priorityClassName: {{ printf "%s-jobs-runner-priority" (include "retool.fullname" .) | quote }}
{{- end }}
{{- if .Values.initContainers }}
initContainers:
Expand Down
23 changes: 23 additions & 0 deletions charts/retool/templates/priorityclass.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{{- if not .Values.priorityClassName }}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

worth a comment explaining why we're intentionally deprioritizing backend here

apiVersion: scheduling.k8s.io/v1
kind: PriorityClass
metadata:
name: {{ include "retool.fullname" . }}-jobs-runner-priority
labels:
{{- include "retool.labels" . | nindent 4 }}
value: 20
preemptionPolicy: Never
globalDefault: false
description: "PriorityClass for Retool jobs runner pods"
---
apiVersion: scheduling.k8s.io/v1
kind: PriorityClass
metadata:
name: {{ include "retool.fullname" . }}-backend-priority
labels:
{{- include "retool.labels" . | nindent 4 }}
value: 10
preemptionPolicy: Never
globalDefault: false
description: "PriorityClass for Retool backend pods"
{{- end }}
Loading