apiVersion: v1
kind: Service
metadata:
  labels:
    app: haproxy-ingress
  name: haproxy-ingress
  namespace: default
spec:
  type: NodePort
#   externalIPs:
#     - 10.245.1.4
  ports:
  - name: port-1
    port: 80
    protocol: TCP
    targetPort: 80
  - name: port-2
    port: 443
    protocol: TCP
    targetPort: 443
  - name: port-3
    port: 1936
    protocol: TCP
    targetPort: 1936
  selector:
    app: haproxy-ingress