Skip to content

Commit

Permalink
fix(helm): adding namespace to kubectl port-forward Helm Chart NOTES (#…
Browse files Browse the repository at this point in the history
…1171)

Co-authored-by: rogerio <[email protected]>
  • Loading branch information
rogerioefonseca and rogerioefonseca authored Aug 15, 2022
1 parent 361e550 commit bf670ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helm/akhq/templates/NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@
{{- else if contains "ClusterIP" .Values.service.type }}
export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "akhq.name" . }},app.kubernetes.io/instance={{ .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.port }}
kubectl port-forward --namespace {{ .Release.Namespace }} $POD_NAME 8080:{{ .Values.service.port }}
{{- end }}

0 comments on commit bf670ba

Please sign in to comment.