34 lines
818 B
YAML
34 lines
818 B
YAML
# 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:
|
|
replicaCount: 2
|
|
extraArgs:
|
|
- --configmap-tcp-services=haproxy/tcpservices
|
|
config:
|
|
path-rewrite: /s/(.*)/p /s/\1/preview
|
|
service:
|
|
type: NodePort
|
|
nodePorts:
|
|
http: 30080
|
|
enablePorts:
|
|
http: true
|
|
https: false
|
|
stat: true
|
|
ssh: true
|
|
minecraft: true
|
|
tcpPorts:
|
|
- name: ssh
|
|
port: 37122
|
|
targetPort: 37122
|
|
nodePort: 30122
|
|
- name: minecraft
|
|
port: 25565
|
|
targetPort: 25565
|
|
nodePort: 30565
|
|
|
|
defaultBackend:
|
|
replicaCount: 2
|