kubeless/cluster-update

12 lines
322 B
Plaintext
Raw 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-02 22:51:47 +02:00
./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 22:51:47 +02:00
ssh $WORKERNAME -o "StrictHostKeyChecking no" "bash -s" < ./update.sh
2019-04-02 22:28:15 +02:00
echo "[worker:$WORKERNAME] Update is completed."
done