kubeless/functions/deploy_function.sh

11 lines
378 B
Bash
Raw Normal View History

2019-03-26 18:10:21 +01:00
#!/bin/bash
#$1=runtime
#$2=filename
#$3=function name
2019-04-02 23:49:08 +02:00
#$4=handler
2019-03-26 18:10:21 +01:00
2019-04-02 23:45:31 +02:00
kubeless function deploy $3 --runtime $1 --from-file $2 --handler $4
kubeless trigger http create $3 --function-name $3 --path $3 --hostname $3.kubeless
2019-03-26 18:10:21 +01:00
#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