Skip to content

Commit

Permalink
Added namespace by default to k port-forward
Browse files Browse the repository at this point in the history
  • Loading branch information
yurhasko committed Dec 20, 2024
1 parent d67d71c commit 759b6f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion charts/prometheus-postgres-exporter/templates/NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
{{- else if contains "ClusterIP" .Values.service.type }}
export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app={{ template "prometheus-postgres-exporter.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:9187
kubectl port-forward $POD_NAME 8080:9187 --namespace {{ .Release.Namespace }}
{{- end }}

0 comments on commit 759b6f3

Please sign in to comment.