Skip to content

Commit 418125c

Browse files
authored
Merge pull request #151 from cqwense/feature/daemonset-priority-class
add priorityClassName value and logic
2 parents b8ea795 + f1327fe commit 418125c

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

charts/core-dump-handler/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ The following secrets are configurable and map to the corresponding environment
256256
### Values
257257
258258
General
259+
* priorityClassName: The priorityClass of the daemonset pods ( Default nil )
259260
* storage: The size of the storage for the cores (Default 1Gi)
260261
* storageClass: The storage class for volume (Default hostclass)
261262

charts/core-dump-handler/templates/daemonset.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,9 @@ spec:
140140
{{- toYaml . | nindent 8 }}
141141
{{- end }}
142142
serviceAccountName: {{ include "core-dump-handler.serviceAccountName" . }}
143+
{{- if .Values.priorityClassName }}
144+
priorityClassName: {{ .Values.priorityClassName }}
145+
{{- end }}
143146
volumes:
144147
- name: host-volume
145148
persistentVolumeClaim:

charts/core-dump-handler/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ nodeSelector: {}
8585
# gpu-enabled: true
8686
affinity: {}
8787

88+
# priorityClassName for assigning priorityClass to the daemonset pods
89+
priorityClassName:
90+
8891
# Tolerations for the daemonset's pod assignment
8992
# ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
9093
tolerations: []

0 commit comments

Comments
 (0)