Skip to content

Commit

Permalink
update: taint key
Browse files Browse the repository at this point in the history
  • Loading branch information
codekow committed Feb 14, 2024
1 parent 1590b34 commit 5a329f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:
app: nvidia-vector-add
spec:
# tolerations:
# - key: nvidia.com/gpu
# - key: nvidia-gpu-only
# operator: Exists
# effect: NoSchedule
containers:
Expand Down
6 changes: 3 additions & 3 deletions scripts/library/ocp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,9 @@ ocp_aws_create_gpu_machineset(){
--type=merge --patch '{"spec":{"template":{"spec":{"metadata":{"labels":{"node-role.kubernetes.io/gpu":""}}}}}}'

# taint nodes for gpu-only workloads
# oc -n openshift-machine-api \
# patch "${MACHINE_SET_GPU}" \
# --type=merge --patch '{"spec":{"template":{"spec":{"taints":[{"key":nvidia.com/gpu","value":"","effect":"NoSchedule"}]}}}}'
oc -n openshift-machine-api \
patch "${MACHINE_SET_GPU}" \
--type=merge --patch '{"spec":{"template":{"spec":{"taints":[{"key":nvidia-gpu-only","value":"","effect":"NoSchedule"}]}}}}'

# should use the default profile
# oc -n openshift-machine-api \
Expand Down

0 comments on commit 5a329f7

Please sign in to comment.