Skip to content

Commit 974d56a

Browse files
authored
Default GPU node replicas to 1 avoiding 0 nodes in SNO clusters (red-hat-data-services#2167)
* default node replicas to 1 * add replicas in gcp N1 kustomize * add temp sleep for NFD CRD creation
1 parent 0b92fee commit 974d56a

File tree

5 files changed

+15
-1
lines changed

5 files changed

+15
-1
lines changed

ods_ci/tasks/Resources/Provisioning/GPU/NFD/install_nfd.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,6 @@ else
2626
echo "WARNING: I don't know the sha for $xyVersion. Re-using default 4.17 $imageUrl. It might not work!"
2727
fi
2828
sed -i'' -e "s/<imageUrl>/$imageUrl/g" $NFD_INSTANCE
29+
# temporary sleep until latest oc binary is available and --for=create is supported
30+
sleep 10s
2931
oc apply -f "$NFD_INSTANCE"
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
- op: replace
22
path: /spec/template/spec/providerSpec/value/instanceType
33
value: INSTANCE_TYPE
4+
- op: replace
5+
path: /spec/replicas
6+
value: 1

ods_ci/tasks/Resources/Provisioning/Hive/GPU/overlays/GCP/attach-gpu-to-n1/gpu.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,6 @@
99
- op: replace
1010
path: /spec/template/spec/providerSpec/value/machineType
1111
value: INSTANCE_TYPE
12+
- op: replace
13+
path: /spec/replicas
14+
value: 1

ods_ci/tasks/Resources/Provisioning/Hive/GPU/overlays/GCP/gpu.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,7 @@
33
value: INSTANCE_TYPE
44
- op: add
55
path: /spec/template/spec/providerSpec/value/onHostMaintenance
6-
value: Terminate
6+
value: Terminate
7+
- op: replace
8+
path: /spec/replicas
9+
value: 1
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
- op: replace
22
path: /spec/template/spec/providerSpec/value/profile
33
value: INSTANCE_TYPE
4+
- op: replace
5+
path: /spec/replicas
6+
value: 1

0 commit comments

Comments
 (0)