Last active
March 7, 2018 02:35
-
-
Save RVIRUS0817/3bdc19c1b0e84d9f0cc24cb0f5683404 to your computer and use it in GitHub Desktop.
keepalived
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
virtual_server_group DOCKER_HTTP { | |
172.19.10.63 80 | |
172.19.10.111 80 | |
} | |
virtual_server group DOCKER_HTTP { | |
delay_loop 3 | |
lvs_sched wrr | |
lvs_method NAT →Masp | |
protocol TCP | |
real_server 192.168.99.2 80 { | |
weight 5 | |
inhibit_on_failure | |
HTTP_GET { | |
url { | |
path / | |
status_code 200 | |
} | |
connect_port 80 | |
connect_timeout 3 | |
} | |
} | |
real_server 192.168.99.3 80 { | |
weight 5 | |
inhibit_on_failure | |
HTTP_GET { | |
url { | |
path / | |
status_code 200 | |
} | |
connect_port 80 | |
connect_timeout 3 | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment