I'm in the process of migrating to Consul and I was wondering what was the correct approach for this scenario:
The possible ways:
prod.myservice.service.consul (which would lead to filtering with byTag )myservice-prod-i4252I know DCs are not replicated out of the box but I'm assuming it should not matter in that case.
Any insight would be welcomed, thanks in advance.
Hey @scalp42
Thank you for opening an issue. I think this is a really great question, but I think the mailing list is a much better place to facilitate this discussion and get the community involved since it's not an entirely Consul Template-specific question :smile:. Would you mind posting on the mailing list please? I can provide my personal recommendation there, but I think it would also help if you heard the strategies that other organizations are using with the multi-environment approach.
The Consul mailing list is a Google group at https://groups.google.com/forum/#!forum/consul-tool. Again, I am sorry to push you there, but I think that's a much better place to have this discussion :smile:.
Fair enough, I will @sethvargo :smiley:
Opened https://groups.google.com/forum/#!topic/consul-tool/0P_27-j3SYQ
Hi @scalp42 . I have the same use case. Would you mind to tell me what's your solution ?
I also have multiple environments (prod, dev etc), with a single consul cluster, how to distinguish different environments ? (Such as different environments have different database host, port, password, and so on.)
@abcfy2 We ended up using tags to differentiate multiple environments, was the least painful solution for us 馃槃
Thank you.
Most helpful comment
Opened https://groups.google.com/forum/#!topic/consul-tool/0P_27-j3SYQ