Skip to content

Commit

Permalink
update: scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
codekow committed Oct 3, 2024
1 parent 22e90ff commit a06ee59
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@
# ocp_aws_create_gpu_machineset
# ocp_aws_clone_worker_machineset
# ocp_aws_taint_gpu_machineset
# ocp_create_machineset_autoscale'
# ocp_create_machineset_autoscale
# '

# for function in $FUNCTIONS
# for function in ${FUNCTIONS}
# do
# extract_function $function scripts/library/ocp.sh >> tmp
# echo >> tmp
Expand Down
4 changes: 2 additions & 2 deletions scripts/library/ocp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,8 @@ ocp_set_scheduler_profile(){
SCHED_PROFILE=${1:-LowNodeUtilization}

# LowNodeUtilization, HighNodeUtilization, NoScoring
echo "see https://docs.openshift.com/container-platform/4.11/nodes/scheduling/nodes-scheduler-profiles.html"
echo "OPTIONS: LowNodeUtilization, HighNodeUtilization, NoScoring"
echo "see https://docs.openshift.com/container-platform/4.16/nodes/scheduling/nodes-scheduler-profiles.html"
echo "OPTIONS: LowNodeUtilization (default), HighNodeUtilization, NoScoring"
echo "SCHED_PROFILE: ${SCHED_PROFILE}"

oc patch schedulers.config.openshift.io/cluster --type merge --patch '{"spec":{"profile": "'"${SCHED_PROFILE}"'"}}'
Expand Down

0 comments on commit a06ee59

Please sign in to comment.