Update 'haproxy.yml'

master
alecsandru 9 months ago
parent e7ff233ea4
commit f9344467b6
  1. 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
}

Loading…
Cancel
Save