Commit e0f9bfd4 authored by JooHan Hong's avatar JooHan Hong

haproxy, back-end add

parent 376b18ad
Pipeline #5241 passed with stages
in 45 seconds
......@@ -279,3 +279,38 @@ NAME REFERENCE TARGETS MINPODS MAXPODS REPLICAS
hongsnet-web Deployment/hongsnet-web 0%/80% 5 10 5 7h51m
```
# HA-Proxy Back-end 현황
```bash
backend www_hongsnet_net
balance roundrobin
option forwardfor
option httpchk HEAD / HONGSNET_LVS
option httpclose
cookie SVID insert indirect nocache maxlife 10m
redirect scheme https code 301 if !{ ssl_fc }
# 에러 파일 설정
errorfile 400 /etc/haproxy/errors/400.http
errorfile 403 /etc/haproxy/errors/403.http
errorfile 408 /etc/haproxy/errors/408.http
errorfile 500 /etc/haproxy/errors/500.http
errorfile 502 /etc/haproxy/errors/502.http
errorfile 503 /etc/haproxy/errors/503.http
errorfile 504 /etc/haproxy/errors/504.http
http-request cache-use web_cache
http-response cache-store web_cache
http-request set-src src
server tb2.hongsnet.net 172.24.0.151:30000 cookie tb2 check fall 3 rise 2
server tb3.hongsnet.net 172.16.0.158:30000 cookie tb3 check fall 3 rise 2
server tb3-docker.hongsnet.net 172.16.0.251:30000 cookie tb3-docker check fall 3 rise 2
```
> Back-end의 **NodePort**를 이용해 tcp/30000번 포트를 Listen
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment