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 2.1
edited by Sungwon Lee
on 2026/07/05 03:54
Change comment: There is no comment for this version

Summary

Details

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