Skip to content

Commit

Permalink
Replace usages of critical-pod annotation with priorityClassName
Browse files Browse the repository at this point in the history
scheduler.alpha.kubernetes.io/critical-pod deprecated since kubernetes v1.16
  • Loading branch information
y2kenny-amd committed Oct 19, 2022
1 parent 4aa0e0f commit 6d4133b
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion helm/amd-gpu/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ keywords:
- gpu

kubeVersion: ">= 1.18.0-0"
version: 0.3.0
version: 0.4.0
appVersion: "1.18.0"

dependencies:
Expand Down
3 changes: 1 addition & 2 deletions helm/amd-gpu/templates/deviceplugin-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ spec:
name: {{ .Chart.Name }}-dp-ds
template:
metadata:
annotations:
scheduler.alpha.kubernetes.io/critical-pod: ""
labels:
name: {{ .Chart.Name }}-dp-ds
spec:
Expand All @@ -24,6 +22,7 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
priorityClassName: system-node-critical
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
Expand Down
3 changes: 1 addition & 2 deletions helm/amd-gpu/templates/labeller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ spec:
name: amdgpu-lr-ds
template:
metadata:
annotations:
scheduler.alpha.kubernetes.io/critical-pod: ""
labels:
name: amdgpu-lr-ds
spec:
Expand All @@ -47,6 +45,7 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
priorityClassName: system-node-critical
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
Expand Down
3 changes: 1 addition & 2 deletions k8s-ds-amdgpu-dp-health.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,10 @@ spec:
name: amdgpu-dp-ds
template:
metadata:
annotations:
scheduler.alpha.kubernetes.io/critical-pod: ""
labels:
name: amdgpu-dp-ds
spec:
priorityClassName: system-node-critical
tolerations:
- key: CriticalAddonsOnly
operator: Exists
Expand Down
3 changes: 1 addition & 2 deletions k8s-ds-amdgpu-dp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ spec:
name: amdgpu-dp-ds
template:
metadata:
annotations:
scheduler.alpha.kubernetes.io/critical-pod: ""
labels:
name: amdgpu-dp-ds
spec:
priorityClassName: system-node-critical
tolerations:
- key: CriticalAddonsOnly
operator: Exists
Expand Down
3 changes: 1 addition & 2 deletions k8s-ds-amdgpu-labeller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,10 @@ spec:
name: amdgpu-lr-ds
template:
metadata:
annotations:
scheduler.alpha.kubernetes.io/critical-pod: ""
labels:
name: amdgpu-lr-ds
spec:
priorityClassName: system-node-critical
tolerations:
- key: CriticalAddonsOnly
operator: Exists
Expand Down

0 comments on commit 6d4133b

Please sign in to comment.