Skip to content

Commit

Permalink
Update helm notes for port-forward localhost (#1629)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiffanyfay authored Apr 3, 2020
1 parent 9cf19ed commit a6faf76
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions chart/kubeapps/templates/NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ To access Kubeapps from outside your K8s cluster, follow the steps below:

{{- $portNumber := include "kubeapps.frontend-port-number" . }}
echo "Kubeapps URL: http://127.0.0.1:{{ $portNumber }}"
export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app={{ template "kubeapps.fullname" . }}" -o jsonpath="{.items[0].metadata.name}")
kubectl port-forward --namespace {{ .Release.Namespace }} $POD_NAME {{ $portNumber }}:{{ $portNumber }}
kubectl port-forward --namespace {{ .Release.Namespace }} service/{{ template "kubeapps.fullname" . }} {{ $portNumber }}:{{ .Values.frontend.service.port }}

{{- end }}
{{- end }}
Expand Down

0 comments on commit a6faf76

Please sign in to comment.