Changes for page HA Proxy

Last modified by Sungwon Lee on 2026/07/05 03:54

From version 1.1
edited by Sungwon Lee
on 2026/07/05 03:53
Change comment: Auto-saved during real-time collaboration
To version 1.2
edited by Sungwon Lee
on 2026/07/05 03:54
Change comment: Auto-saved during real-time collaboration

Summary

Details

Page properties
Content
... ... @@ -70,6 +70,7 @@
70 70  
71 71  {{/code}}
72 72  
73 +/etc/keepalived/keepalived.conf
73 73  
74 74  {{code}}
75 75  vrrp_script check_haproxy {
... ... @@ -105,3 +105,40 @@
105 105  }
106 106  
107 107  {{/code}}
109 +
110 +2번 노드
111 +
112 +{{code}}
113 +vrrp_script check_haproxy {
114 + script "killall -0 haproxy"
115 + interval 2
116 + weight 2
117 +}
118 +
119 +vrrp_instance VI_1 {
120 + state BACKUP # Set to BACKUP
121 + interface ens3 # Change to your actual 10.10.3.0/24 interface name
122 + virtual_router_id 51 # Must match MASTER
123 + priority 100 # Lower priority than MASTER
124 + advert_int 1
125 +
126 + authentication {
127 + auth_type PASS
128 + auth_pass k8s_secret # Must match MASTER
129 + }
130 +
131 + unicast_src_ip 10.10.3.132
132 + unicast_peer {
133 + 10.10.3.131
134 + }
135 +
136 + virtual_ipaddress {
137 + 10.10.3.130/24 # Same Virtual IP (VIP) as MASTER
138 + }
139 +
140 + track_script {
141 + check_haproxy
142 + }
143 +}
144 +
145 +{{/code}}