Skip to content

Commit 6d4133b

Browse files
committed
Replace usages of critical-pod annotation with priorityClassName
scheduler.alpha.kubernetes.io/critical-pod deprecated since kubernetes v1.16
1 parent 4aa0e0f commit 6d4133b

File tree

6 files changed

+6
-11
lines changed

6 files changed

+6
-11
lines changed

helm/amd-gpu/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ keywords:
1515
- gpu
1616

1717
kubeVersion: ">= 1.18.0-0"
18-
version: 0.3.0
18+
version: 0.4.0
1919
appVersion: "1.18.0"
2020

2121
dependencies:

helm/amd-gpu/templates/deviceplugin-daemonset.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ spec:
99
name: {{ .Chart.Name }}-dp-ds
1010
template:
1111
metadata:
12-
annotations:
13-
scheduler.alpha.kubernetes.io/critical-pod: ""
1412
labels:
1513
name: {{ .Chart.Name }}-dp-ds
1614
spec:
@@ -24,6 +22,7 @@ spec:
2422
{{- toYaml . | nindent 8 }}
2523
{{- end }}
2624
{{- end }}
25+
priorityClassName: system-node-critical
2726
{{- with .Values.tolerations }}
2827
tolerations:
2928
{{- toYaml . | nindent 8 }}

helm/amd-gpu/templates/labeller.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ spec:
3636
name: amdgpu-lr-ds
3737
template:
3838
metadata:
39-
annotations:
40-
scheduler.alpha.kubernetes.io/critical-pod: ""
4139
labels:
4240
name: amdgpu-lr-ds
4341
spec:
@@ -47,6 +45,7 @@ spec:
4745
{{- toYaml . | nindent 8 }}
4846
{{- end }}
4947
{{- end }}
48+
priorityClassName: system-node-critical
5049
{{- with .Values.tolerations }}
5150
tolerations:
5251
{{- toYaml . | nindent 8 }}

k8s-ds-amdgpu-dp-health.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,10 @@ spec:
1515
name: amdgpu-dp-ds
1616
template:
1717
metadata:
18-
annotations:
19-
scheduler.alpha.kubernetes.io/critical-pod: ""
2018
labels:
2119
name: amdgpu-dp-ds
2220
spec:
21+
priorityClassName: system-node-critical
2322
tolerations:
2423
- key: CriticalAddonsOnly
2524
operator: Exists

k8s-ds-amdgpu-dp.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,10 @@ spec:
99
name: amdgpu-dp-ds
1010
template:
1111
metadata:
12-
annotations:
13-
scheduler.alpha.kubernetes.io/critical-pod: ""
1412
labels:
1513
name: amdgpu-dp-ds
1614
spec:
15+
priorityClassName: system-node-critical
1716
tolerations:
1817
- key: CriticalAddonsOnly
1918
operator: Exists

k8s-ds-amdgpu-labeller.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,10 @@ spec:
3838
name: amdgpu-lr-ds
3939
template:
4040
metadata:
41-
annotations:
42-
scheduler.alpha.kubernetes.io/critical-pod: ""
4341
labels:
4442
name: amdgpu-lr-ds
4543
spec:
44+
priorityClassName: system-node-critical
4645
tolerations:
4746
- key: CriticalAddonsOnly
4847
operator: Exists

0 commit comments

Comments
 (0)