kubeless/cluster-update

12 lines
336 B
Plaintext
Raw Permalink Normal View History

2019-04-02 22:26:12 +02:00
#!/bin/bash
2019-04-02 22:28:15 +02:00
WORKER_LIST="worker.list"
2019-04-17 16:00:47 +02:00
./update/update.sh
2019-04-02 22:28:15 +02:00
for LINE in $(cat $WORKER_LIST | grep -vE "^#"); do
WORKERNAME=`echo $LINE | awk -F"/" '{print $NF}'`
echo "[worker:$WORKERNAME] Updating..."
2019-04-02 23:45:31 +02:00
ssh $WORKERNAME -o "StrictHostKeyChecking no" "bash -s" < ./update/update.sh
2019-04-02 22:28:15 +02:00
echo "[worker:$WORKERNAME] Update is completed."
done