Priyanka | 5fdca02 | 2018-03-13 12:53:06 +0000 | [diff] [blame] | 1 | 1. 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 }} |