HAProxy Ingress has been installed!

{{- if contains "NodePort" .Values.controller.service.type }}

HAProxy is exposed as a `NodePort` type service.
Get the application URL by running these commands:

    export HTTP_NODE_PORT=$(kubectl --namespace {{ .Release.Namespace }} get services -o jsonpath="{.spec.ports[0].nodePort}" {{ include "haproxy-ingress.fullname" . }})
    export HTTPS_NODE_PORT=$(kubectl --namespace {{ .Release.Namespace }} get services -o jsonpath="{.spec.ports[1].nodePort}" {{ include "haproxy-ingress.fullname" . }})
    export NODE_IP=$(kubectl --namespace {{ .Release.Namespace }} get nodes -o jsonpath="{.items[0].status.addresses[1].address}")

    echo "Visit http://$NODE_IP:$HTTP_NODE_PORT to access your application via HTTP."
    echo "Visit https://$NODE_IP:$HTTPS_NODE_PORT to access your application via HTTPS."

{{- else if contains "LoadBalancer" .Values.controller.service.type }}

HAProxy is exposed as a `LoadBalancer` type service.
It may take a few minutes for the LoadBalancer IP to be available.
You can watch the status by running:

    kubectl --namespace {{ .Release.Namespace }} get services {{ include "haproxy-ingress.fullname" . }} -o wide -w

{{- else if contains "ClusterIP" .Values.controller.service.type }}

HAProxy is exposed as a `ClusterIP` type service.
Get the application URL by running these commands:

    export POD_NAME=$(kubectl --namespace {{ .Release.Namespace }} get pods -o jsonpath="{.items[0].metadata.name}" -l "app={{ include "haproxy-ingress.name" . }},component={{ .Values.controller.name }},release={{ .Release.Name }}")
    kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:80
    echo "Visit http://127.0.0.1:8080 to access your application."

{{- end }}
