blob: dde49c14398c2ae4df7bdb4e35d3c91055592192 [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 export NODE_PORT=$(kubectl get --namespace {{ include "common.namespace" . }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "common.name" . }})
7 export NODE_IP=$(kubectl get nodes --namespace {{ include "common.namespace" . }} -o jsonpath="{.items[0].status.addresses[0].address}")
8 echo http://$NODE_IP:$NODE_PORT
9 NOTE: It may take a few minutes for the LoadBalancer IP to be available.
10 You can watch the status of by running 'kubectl get svc -w {{ include "common.name" . }}'
11 export SERVICE_IP=$(kubectl get svc --namespace {{ include "common.namespace" . }} {{ include "common.name" . }} -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
12 echo http://$SERVICE_IP:{{ .Values.service.externalPort }}
13 export POD_NAME=$(kubectl get pods --namespace {{ include "common.namespace" . }} -l "app={{ .Chart.Name }},release={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
14 echo "Visit http://127.0.0.1:8080 to use your application"
15 kubectl port-forward $POD_NAME 8080:{{ .Values.service.internalPort }}
16{{- end }}