add script

This commit is contained in:
jinho0928
2020-12-24 13:11:24 +09:00
parent 93f91712e7
commit b2b2774700
8 changed files with 313 additions and 0 deletions

28
manifest/yaml/haproxy.cfg Normal file
View File

@@ -0,0 +1,28 @@
global
log 127.0.0.1 local2
maxconn 2000
uid 0
gid 0
daemon # background process
defaults
log global # global 설정 사용
mode tcp # SSL 통신을 위해서는 TCP모드로 (http모드는 SSL 안됨)
option tcplog
option dontlognull # 데이터가 전송되지 않은 연결 로깅 제외
retries 3 # 연결요청 재시도 횟수
maxconn 2000 #option redispatch
timeout connect 10s
timeout client 1m
timeout server 1m
frontend k8s-api
bind 0.0.0.0:6443
default_backend k8s-api
backend k8s-api
option tcp-check
balance roundrobin
server MASTER1NAME MASTER1IP check # Master 다중화 서버들 정보 기재
server MASTER2NAME MASTER2IP check
server MASTER3NAME MASTER3IP check