rancher-charts/packages/rancher-monitoring/rancher-node-exporter/generated-changes/patch/templates/NOTES.txt.patch

12 lines
860 B
Diff

--- charts-original/templates/NOTES.txt
+++ charts/templates/NOTES.txt
@@ -10,6 +10,6 @@
echo http://$SERVICE_IP:{{ .Values.service.port }}
{{- else if contains "ClusterIP" .Values.service.type }}
export POD_NAME=$(kubectl get pods --namespace {{ template "prometheus-node-exporter.namespace" . }} -l "app.kubernetes.io/name={{ template "prometheus-node-exporter.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
- echo "Visit http://127.0.0.1:9100 to use your application"
- kubectl port-forward --namespace {{ template "prometheus-node-exporter.namespace" . }} $POD_NAME 9100
+ echo "Visit http://127.0.0.1:{{ .Values.service.port }} to use your application"
+ kubectl port-forward --namespace {{ template "prometheus-node-exporter.namespace" . }} $POD_NAME {{ .Values.service.port }}
{{- end }}