Skip to content

Commit

Permalink
A Kubernetes PriorityClassName can be set for onyxia web and api (#610)
Browse files Browse the repository at this point in the history
* A Kubernetes PriorityClassName can be set for onyxia web and api

---------

Co-authored-by: slyobard <[email protected]>
  • Loading branch information
slim0 and slyobard authored Oct 3, 2023
1 parent 021336c commit eda37a9
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion helm-chart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ type: application

# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
version: 4.2.0
version: 4.2.1
3 changes: 3 additions & 0 deletions helm-chart/templates/deployment-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,6 @@ spec:
{{- if .Values.api.extraVolumes }}
volumes: {{- toYaml .Values.api.extraVolumes | nindent 6 }}
{{- end }}
{{- if .Values.api.priorityClassName }}
priorityClassName: "{{ .Values.api.priorityClassName }}"
{{- end }}
3 changes: 3 additions & 0 deletions helm-chart/templates/deployment-web.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,6 @@ spec:
{{- if .Values.web.extraVolumes }}
volumes: {{- toYaml .Values.web.extraVolumes | nindent 6 }}
{{- end }}
{{- if .Values.web.priorityClassName }}
priorityClassName: "{{ .Values.web.priorityClassName }}"
{{- end }}
12 changes: 12 additions & 0 deletions helm-chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ web:
repository: inseefrlab/onyxia-web
tag: 2.29.7
pullPolicy: IfNotPresent

## Pod priority settings
## ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
##
priorityClassName: ""

podLabels: {}
podSecurityContext: {} # fsGroup: 2000
securityContext:
Expand Down Expand Up @@ -92,6 +98,12 @@ api:
tag: v0.31
pullPolicy: IfNotPresent
contextPath: /api

## Pod priority settings
## ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
##
priorityClassName: ""

podLabels: {}
podSecurityContext: {} # fsGroup: 2000
securityContext:
Expand Down

0 comments on commit eda37a9

Please sign in to comment.