Skip to content

Commit

Permalink
Default GPU node replicas to 1 avoiding 0 nodes in SNO clusters (#2167)
Browse files Browse the repository at this point in the history
* default node replicas to 1

* add replicas in gcp N1 kustomize

* add temp sleep for NFD CRD creation
  • Loading branch information
bdattoma authored Jan 15, 2025
1 parent 0b92fee commit 974d56a
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ods_ci/tasks/Resources/Provisioning/GPU/NFD/install_nfd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,6 @@ else
echo "WARNING: I don't know the sha for $xyVersion. Re-using default 4.17 $imageUrl. It might not work!"
fi
sed -i'' -e "s/<imageUrl>/$imageUrl/g" $NFD_INSTANCE
# temporary sleep until latest oc binary is available and --for=create is supported
sleep 10s
oc apply -f "$NFD_INSTANCE"
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
- op: replace
path: /spec/template/spec/providerSpec/value/instanceType
value: INSTANCE_TYPE
- op: replace
path: /spec/replicas
value: 1
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@
- op: replace
path: /spec/template/spec/providerSpec/value/machineType
value: INSTANCE_TYPE
- op: replace
path: /spec/replicas
value: 1
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@
value: INSTANCE_TYPE
- op: add
path: /spec/template/spec/providerSpec/value/onHostMaintenance
value: Terminate
value: Terminate
- op: replace
path: /spec/replicas
value: 1
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
- op: replace
path: /spec/template/spec/providerSpec/value/profile
value: INSTANCE_TYPE
- op: replace
path: /spec/replicas
value: 1

0 comments on commit 974d56a

Please sign in to comment.