From 78d182db48aae1c7b4911883b2a0b0b604da19e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Fri, 26 Apr 2019 15:24:35 +0200 Subject: [PATCH] Update deploy_function.sh --- functions/deploy_function.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/deploy_function.sh b/functions/deploy_function.sh index 757bb3c..7a38c95 100644 --- a/functions/deploy_function.sh +++ b/functions/deploy_function.sh @@ -4,8 +4,8 @@ #$3=function name #$4=handler -kubeless function deploy $3 --runtime $1 --from-file $2 --handler $4 -kubeless trigger http create $3 --function-name $3 --path $3 --hostname $3.kubeless +kubeless function deploy $3 --runtime $1 --from-file $2 --handler $4 --namespace kubeless --trigger-http +#kubeless trigger http create $3 --function-name $3 --path $3 --hostname $3.kubeless kubeless autoscale create $3 --max 32 --metric "cpu" --min 3 --value "50" #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