From 759b6f313328d59dcbec078d4ac7f4a501b291ea Mon Sep 17 00:00:00 2001 From: yurhasko Date: Fri, 20 Dec 2024 17:46:31 +0200 Subject: [PATCH] Added namespace by default to k port-forward --- charts/prometheus-postgres-exporter/templates/NOTES.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/prometheus-postgres-exporter/templates/NOTES.txt b/charts/prometheus-postgres-exporter/templates/NOTES.txt index 5c328b9354a3..a7bce03d3db0 100644 --- a/charts/prometheus-postgres-exporter/templates/NOTES.txt +++ b/charts/prometheus-postgres-exporter/templates/NOTES.txt @@ -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 }}