diff --git a/charts/core-dump-handler/README.md b/charts/core-dump-handler/README.md index 2f6c9ec..fe791ea 100644 --- a/charts/core-dump-handler/README.md +++ b/charts/core-dump-handler/README.md @@ -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) diff --git a/charts/core-dump-handler/templates/daemonset.yaml b/charts/core-dump-handler/templates/daemonset.yaml index eebb46f..81125d1 100644 --- a/charts/core-dump-handler/templates/daemonset.yaml +++ b/charts/core-dump-handler/templates/daemonset.yaml @@ -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: diff --git a/charts/core-dump-handler/values.yaml b/charts/core-dump-handler/values.yaml index f453a43..82920f7 100644 --- a/charts/core-dump-handler/values.yaml +++ b/charts/core-dump-handler/values.yaml @@ -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: []