This is a very simple flask app which exposes the fbprophet time series package as a (simple) REST API.
It also has a service description for a Kubernetes deployment exposed a service.
Notes: It expects a secret_key environment variable to authenticate requests.
- Build Docker image
- Push to Docker repo (same one specified in deployment
- With access to cluster run `kubectl apply -f prophet.yaml -n $NAMESPACE
- Build Docker image (use -t option to tag a name, say prophet)
- Run
docker run -it -p 5000:5000 -e secret_key=<secret_key> image_name
- Access on localhost:5000
TODO:
- Add more options to API
- Test`