Created
November 12, 2015 15:48
-
-
Save mafonso/b34cfa7a81a3f7cdec62 to your computer and use it in GitHub Desktop.
Consul template to scan all services
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Consul Services | |
{{range services}} | |
backend {{.Name}} | |
balance roundrobin | |
option redispatch | |
option forwardfor | |
{{range service .Name}} server {{.Name}} {{.Address}}:{{.Port}} | |
{{end}} {{end}} | |
#End Consul services |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment