Skip to content

Commit

Permalink
keepalived
Browse files Browse the repository at this point in the history
  • Loading branch information
ismoilovdevml committed Sep 8, 2024
1 parent 3835c48 commit 133f5df
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
19 changes: 19 additions & 0 deletions HAProxy/keepalived/haproxy1.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# /etc/keepalived/keepalived.conf

vrrp_instance VI_1 {
state MASTER
interface ens4
virtual_router_id 51
priority 101
advert_int 1
authentication {
auth_type PASS
auth_pass parolingiz
}
virtual_ipaddress {
10.162.0.10/32 # Virtual IP manzili
}
track_interface {
ens4
}
}
18 changes: 18 additions & 0 deletions HAProxy/keepalived/haproxy2.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# /etc/keepalived/keepalived.conf
vrrp_instance VI_1 {
state BACKUP
interface ens4
virtual_router_id 51
priority 100
advert_int 1
authentication {
auth_type PASS
auth_pass parolingiz
}
virtual_ipaddress {
10.162.0.10/32 # Shu VIP manzil
}
track_interface {
ens4
}
}

0 comments on commit 133f5df

Please sign in to comment.