Skip to content

Commit

Permalink
Added more debugging for k8s
Browse files Browse the repository at this point in the history
  • Loading branch information
wtripp180901 committed Aug 17, 2023
1 parent e25332e commit e90f227
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions image/k8s-slurmd-create
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@ set -euo pipefail

echo "$(date) Resume invoked $0 $*" >> /var/log/slurm/power_save.log

echo "Arguments: $* $0 $1"

hosts=$(scontrol show hostnames $1) # this is purely a textual expansion, doens't depend on defined nodes
echo "Powering up hosts: $hosts"
for host in $hosts
do
echo "Creating $host"
sed s/SLURMD_NODENAME/$host/ /etc/slurm/slurmd-pod-template.yml | kubectl create -f -
echo "done"
done

0 comments on commit e90f227

Please sign in to comment.