# 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 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: 2