From 8fd8a7c324b4c34235bcaa1b55594119a9527df8 Mon Sep 17 00:00:00 2001 From: Adnan Abdulhussein Date: Thu, 7 Sep 2017 10:43:53 +0100 Subject: [PATCH] fix(create): port-forward should use internal port cc @james-w --- pkg/chartutil/create.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/chartutil/create.go b/pkg/chartutil/create.go index 317737b2e..fe06e14e0 100644 --- a/pkg/chartutil/create.go +++ b/pkg/chartutil/create.go @@ -221,7 +221,7 @@ const defaultNotes = `1. Get the application URL by running these commands: {{- else if contains "ClusterIP" .Values.service.type }} export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app={{ template "name" . }},release={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}") echo "Visit http://127.0.0.1:8080 to use your application" - kubectl port-forward $POD_NAME 8080:{{ .Values.service.externalPort }} + kubectl port-forward $POD_NAME 8080:{{ .Values.service.internalPort }} {{- end }} `