Last active
October 28, 2018 13:59
-
-
Save 5RK7N/c5eb019af4a5859cc9d72df2eec2bb0a to your computer and use it in GitHub Desktop.
HAProxy Configuration with AWS resolver for NLB
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
resolvers aws_resolver | |
nameserver dns 169.254.169.253:53 | |
resolve_retries 3 | |
timeout retry 2s | |
hold valid 30s | |
backend nlb_a | |
mode tcp | |
server-template nlb-a 3 nlb-12345-67890.elb.eu-west-1.elb.amazonaws.com check resolvers aws_resolver | |
backend nlb_b | |
mode tcp | |
server-template nlb-b 3 nlb-09876-54321.elb.eu-west-1.elb.amazonaws.com check resolvers aws_resolver | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment