Skip to content

Commit 4fa0786

Browse files
authored
feat(helm): support custom priorityClassName (#908)
Set priorityClassName through Helm chart. Defaults to `system-cluster-critical`. Requested in #848
1 parent 9241154 commit 4fa0786

5 files changed

Lines changed: 10 additions & 4 deletions

File tree

chart/.snapshots/default.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,4 +93,4 @@ spec:
9393
requests:
9494
cpu: 100m
9595
memory: 50Mi
96-
priorityClassName: system-cluster-critical
96+
priorityClassName: "system-cluster-critical"

chart/templates/deployment.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,9 @@ spec:
104104
volumeMounts:
105105
{{- toYaml . | nindent 12 }}
106106
{{- end }}
107-
priorityClassName: system-cluster-critical
107+
{{- if .Values.priorityClassName }}
108+
priorityClassName: {{ .Values.priorityClassName | quote }}
109+
{{- end }}
108110
{{- with .Values.extraVolumes }}
109111
volumes:
110112
{{- toYaml . | nindent 8 }}

chart/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,10 @@ nodeSelector: {}
113113
# Set the affinity for pods. (Only works with kind=Deployment)
114114
affinity: {}
115115

116+
# pods priorityClassName
117+
# ref: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption
118+
priorityClassName: "system-cluster-critical"
119+
116120
robot:
117121
# Set to true to enable support for Robot (Dedicated) servers.
118122
enabled: false

deploy/ccm-networks.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,4 @@ spec:
9999
requests:
100100
cpu: 100m
101101
memory: 50Mi
102-
priorityClassName: system-cluster-critical
102+
priorityClassName: "system-cluster-critical"

deploy/ccm.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,4 +91,4 @@ spec:
9191
requests:
9292
cpu: 100m
9393
memory: 50Mi
94-
priorityClassName: system-cluster-critical
94+
priorityClassName: "system-cluster-critical"

0 commit comments

Comments
 (0)