Skip to content

Instantly share code, notes, and snippets.

@RVIRUS0817
Last active March 7, 2018 02:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RVIRUS0817/3bdc19c1b0e84d9f0cc24cb0f5683404 to your computer and use it in GitHub Desktop.
Save RVIRUS0817/3bdc19c1b0e84d9f0cc24cb0f5683404 to your computer and use it in GitHub Desktop.
keepalived
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