bunch of changes
This commit is contained in:
parent
61d418e9a0
commit
1447c964ec
@ -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
|
||||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user