scripts/fogcutter/k8s/haproxy.yml

33 lines
778 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: 1
extraArgs:
- --configmap-tcp-services=haproxy/tcpservices
service:
type: NodePort
nodePorts:
http: 30080
https: 30443
enablePorts:
http: true
https: true
stat: true
ssh: true
minecraft: true
tcpPorts:
- name: ssh
port: 22
targetPort: 22
nodePort: 30022
- name: minecraft
port: 25565
targetPort: 25565
nodePort: 30565
defaultBackend:
replicaCount: 1