1 1. Get the application URL by running these commands:
2 {{- if .Values.ingress.enabled }}
3 {{- range .Values.ingress.hosts }}
6 NOTE: It may take a few minutes for the LoadBalancer IP to be available.
7 You can watch the status of by running 'kubectl get svc -w {{ include "common.name" . }}'
8 export SERVICE_IP=$(kubectl get svc --namespace {{ include "common.namespace" . }} {{ include "common.name" . }} -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
9 echo http://$SERVICE_IP:{{ .Values.service.externalPort }}
10 export POD_NAME=$(kubectl get pods --namespace {{ include "common.namespace" . }} -l "app={{ .Chart.Name }},release={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
11 echo "Visit http://127.0.0.1:8080 to use your application"
12 kubectl port-forward $POD_NAME 8080:{{ .Values.service.internalPort }}