2020-11-05 19:10:26 -05:00
|
|
|
# k create namespace haproxy
|
|
|
|
# Create tcp services configmap:
|
|
|
|
# k apply -f haproxy-tcp.yml
|
|
|
|
# helm repo add haproxytech https://haproxytech.github.io/helm-charts && helm repo update
|
|
|
|
# helm install haproxy haproxytech/kubernetes-ingress --namespace haproxy -f haproxy.yml
|
|
|
|
controller:
|
2020-11-07 09:41:19 -05:00
|
|
|
replicaCount: 2
|
2020-11-05 19:10:26 -05:00
|
|
|
extraArgs:
|
|
|
|
- --configmap-tcp-services=haproxy/tcpservices
|
2020-11-07 09:41:19 -05:00
|
|
|
config:
|
|
|
|
path-rewrite: /s/(.*)/p /s/\1/preview
|
2020-11-05 19:10:26 -05:00
|
|
|
service:
|
|
|
|
type: NodePort
|
|
|
|
nodePorts:
|
|
|
|
http: 30080
|
|
|
|
https: 30443
|
|
|
|
enablePorts:
|
|
|
|
http: true
|
|
|
|
https: true
|
|
|
|
stat: true
|
|
|
|
ssh: true
|
|
|
|
minecraft: true
|
|
|
|
tcpPorts:
|
|
|
|
- name: ssh
|
2020-11-15 10:36:26 -05:00
|
|
|
port: 37122
|
|
|
|
targetPort: 37122
|
|
|
|
nodePort: 30122
|
2020-11-05 19:10:26 -05:00
|
|
|
- name: minecraft
|
|
|
|
port: 25565
|
|
|
|
targetPort: 25565
|
|
|
|
nodePort: 30565
|
|
|
|
|
|
|
|
defaultBackend:
|
2020-11-07 09:41:19 -05:00
|
|
|
replicaCount: 2
|