bunch of changes

This commit is contained in:
Torma Kristóf 2019-04-02 23:45:31 +02:00
parent 61d418e9a0
commit 1447c964ec
3 changed files with 4 additions and 4 deletions

View File

@ -5,7 +5,7 @@ for LINE in $(cat $WORKER_LIST | grep -vE "^#"); do
WORKERNAME=`echo $LINE | awk -F"/" '{print $NF}'` WORKERNAME=`echo $LINE | awk -F"/" '{print $NF}'`
echo "[worker:$WORKERNAME] Updating..." echo "[worker:$WORKERNAME] Updating..."
ssh $WORKERNAME -o "StrictHostKeyChecking no" "bash -s" < ./update.sh ssh $WORKERNAME -o "StrictHostKeyChecking no" "bash -s" < ./update/update.sh
echo "[worker:$WORKERNAME] Update is completed." echo "[worker:$WORKERNAME] Update is completed."
done done

View File

@ -2,9 +2,9 @@
#$1=runtime #$1=runtime
#$2=filename #$2=filename
#$3=function name #$3=function name
#$4/handler
FILENAME=cut $2 -d"." -c2 kubeless function deploy $3 --runtime $1 --from-file $2 --handler $4
kubeless function deploy $3 --runtime $1 --from-file $2 --handler $FILENAME.$3 kubeless trigger http create $3 --function-name $3 --path $3 --hostname $3.kubeless
kubeless trigger http create $3--function-name $3 --path $3 --hostname $3.kubeless
#Test with curl --data '{"Another": "Echo"}' --header "Host: get-python.192.168.99.100.nip.io" --header "Content-Type:application/json" 192.168.99.100/echo #Test with curl --data '{"Another": "Echo"}' --header "Host: get-python.192.168.99.100.nip.io" --header "Content-Type:application/json" 192.168.99.100/echo