Update 'haproxy.yml'
This commit is contained in:
22
haproxy.yml
22
haproxy.yml
@@ -22,3 +22,25 @@
|
||||
name: keepalived
|
||||
enabled: true
|
||||
state: started
|
||||
- name: Config keepalived
|
||||
blockinfile:
|
||||
dest: /etc/keepalived/keepalived.conf
|
||||
block: |
|
||||
vrrp_instance VI_1 {
|
||||
state MASTER
|
||||
interface eth0
|
||||
virtual_router_id 101
|
||||
priority 100
|
||||
advert_int 1
|
||||
authentication {
|
||||
auth_type PASS
|
||||
auth_pass 1111
|
||||
}
|
||||
virtual_ipaddress {
|
||||
10.10.0.2
|
||||
}
|
||||
}
|
||||
vrrp_script chk_apiserver {
|
||||
script "/usr/bin/nc localhost 6443"
|
||||
interval 5
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user