Skip to content

Commit 098eb14

Browse files
committed
Use dedicated priorityclass
Signed-off-by: Laura Lorenz <[email protected]>
1 parent bc4e937 commit 098eb14

File tree

4 files changed

+23
-2
lines changed

4 files changed

+23
-2
lines changed

content/en/docs/tutorials/cluster-management/install-use-dra.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,20 @@ on this cluster:
232232
kubectl apply --server-side -f http://k8s.io/examples/dra/driver-install/clusterrolebinding.yaml
233233
```
234234

235+
1. Create a {{< glossary_tooltip term_id="priority-class" >}} for the DRA
236+
driver. The DRA driver component is responsible for important lifecycle
237+
operations for Pods with claims, so you don't want it to be preempted. Learn
238+
more about [pod priority and preemption
239+
here](/docs/concepts/scheduling-eviction/pod-priority-preemption/). Learn
240+
more about [good practices when maintaining a DRA driver
241+
here](/docs/concepts/cluster-administration/dra/).
242+
243+
{{% code_sample language="yaml" file="dra/driver-install/priorityclass.yaml" %}}
244+
245+
```shell
246+
kubectl apply --server-side -f http://k8s.io/examples/dra/driver-install/priorityclass.yaml
247+
```
248+
235249
1. Deploy the actual DRA driver as a DaemonSet configured to run the example
236250
driver binary with the permissions provisioned above.
237251

content/en/examples/dra/driver-install/daemonset.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ spec:
1616
labels:
1717
app.kubernetes.io/name: dra-example-driver
1818
spec:
19-
priorityClassName: system-node-critical
19+
priorityClassName: dra-driver-high-priority
2020
serviceAccountName: dra-example-driver-service-account
2121
securityContext:
2222
{}

content/en/examples/dra/driver-install/example/pod.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ metadata:
88
spec:
99
containers:
1010
- name: ctr0
11-
image: ubuntu:22.04
11+
image: ubuntu:24.04
1212
command: ["bash", "-c"]
1313
args: ["export; trap 'exit 0' TERM; sleep 9999 & wait"]
1414
resources:
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
apiVersion: scheduling.k8s.io/v1
2+
kind: PriorityClass
3+
metadata:
4+
name: dra-driver-high-priority
5+
value: 1000000
6+
globalDefault: false
7+
description: "This priority class should be used for DRA driver pods only."

0 commit comments

Comments
 (0)