Last active
October 10, 2022 15:15
-
-
Save johnsimcall/25efe1f5305d53753eac908395b9e7f1 to your computer and use it in GitHub Desktop.
HAProxy for OpenShift 4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@bastion ~]# cat /etc/haproxy/haproxy.cfg | |
# "global" and "defaults" sections are default from RPM | |
#--------------------------------------------------------------------- | |
# OpenShift | |
#--------------------------------------------------------------------- | |
listen stats | |
bind :9000 | |
mode http | |
stats enable | |
stats uri / | |
stats refresh 5s | |
monitor-uri /healthz | |
listen openshift-api | |
bind *:6443 | |
mode tcp | |
balance source | |
option tcplog | |
server bootstrap 10.75.30.133:6443 check | |
server control01 10.75.30.134:6443 check | |
server control02 10.75.30.135:6443 check | |
server control03 10.75.30.136:6443 check | |
listen openshift-machine-configs | |
bind *:22623 | |
mode tcp | |
balance source | |
option tcplog | |
server bootstrap 10.75.30.133:22623 check | |
server control01 10.75.30.134:22623 check | |
server control02 10.75.30.135:22623 check | |
server control03 10.75.30.136:22623 check | |
listen ingress-http | |
bind *:80 | |
mode tcp | |
balance source | |
option tcplog | |
server worker01 10.75.30.137:80 check | |
server worker02 10.75.30.138:80 check | |
listen ingress-https | |
bind *:443 | |
mode tcp | |
balance source | |
option tcplog | |
server worker01 10.75.30.137:443 check | |
server worker02 10.75.30.138:443 check |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment