Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

Fix #227 support for priority classes #250

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all 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
3 changes: 3 additions & 0 deletions templates/core-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,9 @@ spec:
{{- end }}
securityContext:
{{ toYaml .Values.securityContext | indent 8 }}
{{- if .Values.priorityClassName }}
priorityClassName: "{{ .Values.priorityClassName }}"
{{- end }}
volumes:
- name: init-script
configMap:
Expand Down
3 changes: 3 additions & 0 deletions templates/readreplicas-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,9 @@ spec:
{{- end }}
securityContext:
{{ toYaml .Values.securityContext | indent 8 }}
{{- if .Values.priorityClassName }}
priorityClassName: "{{ .Values.priorityClassName }}"
{{- end }}
volumes:
- name: init-script
configMap:
Expand Down
4 changes: 4 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,10 @@ securityContext: {}
# runAsNonRoot: true
# runAsUser: 7474

## Priority for pod scheduling
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/
priorityClassName: ""

containerSecurityContext: {}
# Sets securityContext at the container level.
# We recommend to only use this if (pod) securityContext cannot be used. For example certain security options can only be set at this level.
Expand Down