Skip to content

Instantly share code, notes, and snippets.

@liejuntao001
Last active April 27, 2022 20:24
Show Gist options
  • Save liejuntao001/651490c9033b0980a9ff778fa117d372 to your computer and use it in GitHub Desktop.
Save liejuntao001/651490c9033b0980a9ff778fa117d372 to your computer and use it in GitHub Desktop.
frontend k8s-api
bind *:6443
mode tcp
option tcplog
default_backend k8s-api
backend k8s-api
mode tcp
option tcplog
option tcp-check
balance roundrobin
default-server inter 10s downinter 5s rise 2 fall 3 slowstart 60s maxconn 250 maxqueue 256 weight 100
server master1 192.168.4.114:6443 check
server master2 192.168.5.58:6443 check
server master3 192.168.1.203:6443 check
frontend k8s-ingress-http
bind *:80
mode tcp
option tcplog
default_backend k8s-ingress-http
backend k8s-ingress-http
mode tcp
option tcplog
option tcp-check
balance roundrobin
default-server inter 10s downinter 5s rise 2 fall 3 slowstart 60s maxconn 250 maxqueue 256 weight 100
server master1 192.168.4.114:80 check
server master2 192.168.5.58:80 check
server master3 192.168.1.203:80 check
frontend k8s-ingress-https
bind *:443
mode tcp
option tcplog
default_backend k8s-ingress-https
backend k8s-ingress-https
mode tcp
option tcplog
option tcp-check
balance roundrobin
default-server inter 10s downinter 5s rise 2 fall 3 slowstart 60s maxconn 250 maxqueue 256 weight 100
server master1 192.168.4.114:443 check
server master2 192.168.5.58:443 check
server master3 192.168.1.203:443 check
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment