Update haproxy config

This commit is contained in:
2022-04-07 19:20:36 +10:00
parent 4e9f0ac0ee
commit 8aa3cb3510
2 changed files with 39 additions and 8 deletions
+30
View File
@@ -0,0 +1,30 @@
global
log /dev/log local0
log /dev/log local1 notice
defaults
option httplog
option dontlognull
timeout connect 5000
timeout client 50000
timeout server 50000
frontend k8s-nginx
mode tcp
bind *:80
bind *:443
option tcplog
redirect scheme https code 301
#http-request redirect scheme https unless { ssl_fc }
# use_backend http_nginx_pool if !{ ssl_fc }
default_backend k8s-nginx
backend k8s-nginx
mode tcp
option tcp-check
balance roundrobin
default-server inter 10s downinter 5s rise 2 fall 2 slowstart 60s maxconn 250 maxqueue 256 weight 100
server server-1 192.168.1.2:443 check
server server-2 192.168.1.204:443 check
server ssd-1 192.168.1.111:443 check
server ssd-2 192.168.1.46:443 check
+9 -8
View File
@@ -1,3 +1,4 @@
kind: DaemonSet
hostNetwork: true hostNetwork: true
metrics: metrics:
enabled: true enabled: true
@@ -11,8 +12,8 @@ stats:
podAnnotations: podAnnotations:
fluentbit.io/parser: k8s-nginx-ingress fluentbit.io/parser: k8s-nginx-ingress
nodeSelector: # nodeSelector:
gateway: "true" # gateway: "true"
tolerations: tolerations:
- key: node - key: node
operator: Equal operator: Equal
@@ -22,13 +23,13 @@ tolerations:
operator: Equal operator: Equal
value: "" value: ""
effect: NoSchedule effect: NoSchedule
replicaCount: 1 #replicaCount: 1
service: # service:
type: NodePort # type: NodePort
ports: # ports:
http: 80 # http: 80
https: 443 # https: 443
# nodePorts: # nodePorts:
# http: 80 # http: 80
# https: 443 # https: 443