Skip to content

Commit 59c8673

Browse files
update base template with priorities
1 parent a1f084c commit 59c8673

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/codeflare_sdk/templates/base-template.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ metadata:
88
orderedinstance: "m4.xlarge_g4dn.xlarge"
99
spec:
1010
priority: 9
11+
schedulingSpec:
12+
minAvailable: 3
1113
resources:
1214
Items: []
1315
GenericItems:
@@ -112,6 +114,7 @@ spec:
112114
operator: In
113115
values:
114116
- "aw-kuberay"
117+
priorityClassName: "default-priority"
115118
containers:
116119
# The Ray head pod
117120
- env:
@@ -221,6 +224,7 @@ spec:
221224
operator: In
222225
values:
223226
- "aw-kuberay"
227+
priorityClassName: "default-priority"
224228
initContainers:
225229
# the env var $RAY_IP is set by the operator if missing, with the value of the head service name
226230
- name: init-myservice

tests/test-case.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ spec:
109109
nvidia.com/gpu: 0
110110
imagePullSecrets:
111111
- name: unit-test-pull-secret
112+
priorityClassName: default-priority
112113
rayVersion: 2.1.0
113114
workerGroupSpecs:
114115
- groupName: small-group-unit-test-cluster
@@ -192,7 +193,7 @@ spec:
192193
to:
193194
kind: Service
194195
name: unit-test-cluster-head-svc
195-
replicas: 1
196+
replica: 1
196197
Items: []
197198
schedulingSpec:
198199
minAvailable: 3

0 commit comments

Comments
 (0)