K8S HAProxy Configuration

From Wizard Rants
Revision as of 08:09, 1 October 2020 by Northrup2 (talk | contribs) (HA Proxy configuration)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
frontend etcd
    bind 10.1.10.5:2379
    option tcplog
    mode tcp
    default_backend etcd-nodes

backend etcd-nodes
    mode tcp
    balance roundrobin
    option tcp-check
    server us-etcd-01 10.1.20.11:2379 check fall 3 rise 2
    server us-etcd-02 10.1.20.12:2379 check fall 3 rise 2
    server us-etcd-03 10.1.20.10:2379 check fall 3 rise 2

frontend kubernetes
    bind 10.1.10.6:6443
    option tcplog
    mode tcp
    default_backend kubernetes-master-nodes

backend kubernetes-master-nodes
    mode tcp
    balance roundrobin
    option tcp-check
    server us-ctl-01 10.1.20.13:6443 check fall 3 rise 2
    server us-ctl-02 10.1.20.14:6443 check fall 3 rise 2