I'm trying OpenFaas for my new project using Nomad with Consul by following Nick Jackson's documentation for faas-nomad provider.
While I'm having my environment already setup with Nats and Nats-Streaming clusters using the default cluster id "test-cluster" there was no way that the OpenFaas gateway would pick it up. I figured out the issue was a hard coded cluster ID in the source code for the problem.
I renamed my cluster ID with "faas-cluster" and all worked fine. But to keep my own setup intact I had to create separate nats streaming cluster only for OpenFaas.
It would be nice if there is a way to pass the cluster id in the gateway args rather than creating a dedicated cluster.
Current Behaviour
Nats cluster must have an id of "faas-cluster"
Possible Solution
Pass an optional argument faas_nats_id to the gateway arguments
Hello,
I'm trying OpenFaas for my new project using Nomad with Consul by following Nick Jackson's documentation for faas-nomad provider. While I'm having my environment already setup with Nats and Nats-Streaming clusters using the default cluster id "test-cluster" there was no way that the OpenFaas gateway would pick it up. I figured out the issue was a hard coded cluster ID in the source code for the problem.
I renamed my cluster ID with "faas-cluster" and all worked fine. But to keep my own setup intact I had to create separate nats streaming cluster only for OpenFaas.
It would be nice if there is a way to pass the cluster id in the gateway args rather than creating a dedicated cluster.
Current Behaviour
Nats cluster must have an id of "faas-cluster"
Possible Solution
Pass an optional argument faas_nats_id to the gateway arguments