Super simple examples with dynamic branching in faas-flow
- Deploy Openfaas
- Deploy Consul as a statestore, follow : https://github.com/s8sg/faas-flow-consul-statestore or https://learn.hashicorp.com/consul/datacenter-deploy/deployment-guide
- Deploy Minio as a datastore, follow : https://docs.min.io/docs/minio-deployment-quickstart-guide.html
- Deploy Jaguer Tracing, follow: https://www.jaegertracing.io/docs/1.8/getting-started/
- Review your configuration at
flow.yml
environment:
workflow_name: "test-branching"
gateway: "gateway:8080"
enable_tracing: true
trace_server: "jaegertracing:5775"
enable_hmac: false
consul_url: "statestore_consul:8500"
consul_dc: "dc1"
s3_url: "minio:9000"
s3_tls: false
- Deploy the flow-function
faas template pull https://github.com/s8sg/faas-flow
faas build
faas deploy
- Request the flow
curl http://127.0.0.1:8080/function/test-branching