File tree Expand file tree Collapse file tree 4 files changed +23
-2
lines changed
docs/tutorials/cluster-management
examples/dra/driver-install Expand file tree Collapse file tree 4 files changed +23
-2
lines changed Original file line number Diff line number Diff line change @@ -232,6 +232,20 @@ on this cluster:
232
232
kubectl apply --server-side -f http://k8s.io/examples/dra/driver-install/clusterrolebinding.yaml
233
233
` ` `
234
234
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
+
235
249
1. Deploy the actual DRA driver as a DaemonSet configured to run the example
236
250
driver binary with the permissions provisioned above.
237
251
Original file line number Diff line number Diff line change 16
16
labels :
17
17
app.kubernetes.io/name : dra-example-driver
18
18
spec :
19
- priorityClassName : system-node-critical
19
+ priorityClassName : dra-driver-high-priority
20
20
serviceAccountName : dra-example-driver-service-account
21
21
securityContext :
22
22
{}
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ metadata:
8
8
spec :
9
9
containers :
10
10
- name : ctr0
11
- image : ubuntu:22 .04
11
+ image : ubuntu:24 .04
12
12
command : ["bash", "-c"]
13
13
args : ["export; trap 'exit 0' TERM; sleep 9999 & wait"]
14
14
resources :
Original file line number Diff line number Diff line change
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."
You can’t perform that action at this time.
0 commit comments