-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathkeepalived.conf
More file actions
39 lines (34 loc) · 917 Bytes
/
keepalived.conf
File metadata and controls
39 lines (34 loc) · 917 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
vrrp_script chk_docker {
script "/usr/bin/killall -0 dockerd"
interval 2
fall 2
rise 2
}
vrrp_script chk_docker_swarm_status {
script "/bin/bash /etc/keepalived/check-node-swarm-status.sh"
interval 2
fall 2
rise 2
}
vrrp_instance VI_104 {
state EQUAL
interface {{ethernet_adapter_name_for_cluster}}
virtual_router_id 104
priority 100
unicast_src_ip {{this_node_ip}}
unicast_peer {
{{node_3_ip}}
{{node_3_ip}
}
authentication {
auth_type PASS
auth_pass {{password_8_chars_max}}
}
virtual_ipaddress {
{{floating_ip}}/{{floating_ip_mask}} dev {{ethernet_adapter_for_floating_ip}}
}
track_script {
chk_docker
chk_docker_swarm_status
}
}