blob: 75f0a7a6b3ad593a9597acc997a439e17b68ddb7 [file] [log] [blame]
Priyanka5fdca022018-03-13 12:53:06 +000011. Get the application URL by running these commands:
2{{- if .Values.ingress.enabled }}
3{{- range .Values.ingress.hosts }}
4 http://{{ . }}
5{{- end }}
6 export SERVICE_IP=$(kubectl get svc --namespace {{ include "common.namespace" . }} {{ include "common.name" . }} -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
7 echo http://$SERVICE_IP:{{ .Values.service.externalPort }}
8 export POD_NAME=$(kubectl get pods --namespace {{ include "common.namespace" . }} -l "app={{ .Chart.Name }},release={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
9 echo "Visit http://127.0.0.1:8080 to use your application"
10 kubectl port-forward $POD_NAME 8080:{{ .Values.service.internalPort }}
11{{- end }}