hashicorp / faas-nomad

OpenFaaS plugin for Nomad
https://www.openfaas.com
MIT License
254 stars 46 forks source link

Feature/consul dns #65

Closed acornies closed 5 years ago

acornies commented 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

Also, this opens up the door for using the "direct functions" feature instead of our own proxy implementation.