Update deploy_function.sh

This commit is contained in:
Torma Kristóf 2019-04-26 15:25:05 +02:00 committed by GitHub
parent 78d182db48
commit 5b4e6a3341
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,7 +5,7 @@
#$4=handler #$4=handler
kubeless function deploy $3 --runtime $1 --from-file $2 --handler $4 --namespace kubeless --trigger-http 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 trigger http create $3 --function-name $3 --path $3 --hostname $3.kubeless
kubeless autoscale create $3 --max 32 --metric "cpu" --min 3 --value "50" 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 #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