Skip to content

Commit

Permalink
Merge pull request #151 from cqwense/feature/daemonset-priority-class
Browse files Browse the repository at this point in the history
add priorityClassName value and logic
  • Loading branch information
No9 authored May 2, 2024
2 parents b8ea795 + f1327fe commit 418125c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions charts/core-dump-handler/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ The following secrets are configurable and map to the corresponding environment
### Values
General
* priorityClassName: The priorityClass of the daemonset pods ( Default nil )
* storage: The size of the storage for the cores (Default 1Gi)
* storageClass: The storage class for volume (Default hostclass)
Expand Down
3 changes: 3 additions & 0 deletions charts/core-dump-handler/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
serviceAccountName: {{ include "core-dump-handler.serviceAccountName" . }}
{{- if .Values.priorityClassName }}
priorityClassName: {{ .Values.priorityClassName }}
{{- end }}
volumes:
- name: host-volume
persistentVolumeClaim:
Expand Down
3 changes: 3 additions & 0 deletions charts/core-dump-handler/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ nodeSelector: {}
# gpu-enabled: true
affinity: {}

# priorityClassName for assigning priorityClass to the daemonset pods
priorityClassName:

# Tolerations for the daemonset's pod assignment
# ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
tolerations: []
Expand Down

0 comments on commit 418125c

Please sign in to comment.