Create deploy_kubeless_function.sh

This commit is contained in:
Torma Kristóf 2019-03-26 18:10:21 +01:00 committed by GitHub
parent 0ccedb724e
commit 978b8c2416
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,10 @@
#!/bin/bash
#$1=runtime
#$2=filename
#$3=function name
FILENAME=cut $2 -d"." -c2
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
#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