kholmgren / faas-deploy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

faas-deploy

Build and deploy the function pod:

./deploy.sh https://github.com/kholmgren/contact-functions.git run

Test the function pod:

INVOKER=$(kc get service invoker -o=jsonpath='{.status.loadBalancer.ingress[0].ip}')

# or if you're using Minikube and can't use its tunnel:
INGRESS=$(minikube service invoker --url)

echo "INVOKER: $INVOKER"

http $INVOKER/create Authorization:user1 name=kjell

http $INVOKER/update Authorization:user1 id=8742736d-cf52-41ad-82df-0619e8621b7f name=otto

Delete the function pod:

./deploy.sh https://github.com/kholmgren/contact-functions.git delete

About

License:The Unlicense


Languages

Language:Shell 100.0%