blob: c1c46b126c8dc6c85cfd231281ff5adc6c3113da [file] [log] [blame]
Priyanka90e0e262018-03-21 06:44:25 +000011. Get the application URL by running these commands:
2{{- if .Values.ingress.enabled }}
3{{- range .Values.ingress.hosts }}
4 http://{{ . }}
5{{- end }}
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 }}
13{{- end }}