A trivial guestbook app

Functions for GET and POST endpoints. A redis.yaml to deploy redis on
kubernetes.  And a deploy.sh to deploy the fission functions with
routes.
This commit is contained in:
Soam Vasani
2017-01-18 15:30:51 -08:00
parent 9ffba72c11
commit 928d96c080
4 changed files with 104 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
#!/bin/sh
set -e
kubectl create -f redis.yaml
if [ -z "$FISSION_URL" ]
then
echo "Need $FISSION_URL set to a fission controller address"
exit 1
fi
fission env create --name python --image fission/python-env
fission function create --name guestbook-get --env python --code get.py --url /guestbook --method GET
fission function create --name guestbook-add --env python --code add.py --url /guestbook --method POST