Apologies if this question has been asked before, I feel like its a very common use case but I couldn’t find an answer.
Currently if I want my Docker containers to be able to resolve *.consul
dns (ie myother-app.service.consul) I need to add this 2 parameters in the job -> group -> task-> config
:
dns_servers = [
"${attr.unique.network.ip-address}",
]
dns_search_domains = [
"consul",
]
I do this to each Nomad Job I have. I was wondering that there must be a better way to do this and avoid so much duplication.
Could some one point me in the right direction?
Thanks!