Closed acornies closed 5 years ago
I have a use case for using consul-style FQDNs in functions ( #58 ), so I thought it best to implement it like so:
1) Support setting dns_servers per function in env vars w/ gateway/faas-cli call:
environment: dns_servers: 127.0.0.1,127.0.1.1
2) Add optional faas-nomad cli param: --enable_consul_dns which uses the preexisting --consul_addr as the dns server
--enable_consul_dns
--consul_addr
Also, this opens up the door for using the "direct functions" feature instead of our own proxy implementation.
I have a use case for using consul-style FQDNs in functions ( #58 ), so I thought it best to implement it like so:
1) Support setting dns_servers per function in env vars w/ gateway/faas-cli call:
2) Add optional faas-nomad cli param:
--enable_consul_dns
which uses the preexisting--consul_addr
as the dns serverAlso, this opens up the door for using the "direct functions" feature instead of our own proxy implementation.