From f7d19ba07f16bc7284232f48a393228720185c6f Mon Sep 17 00:00:00 2001 From: Juan Ariza Toledano Date: Tue, 7 Aug 2018 13:20:14 +0200 Subject: [PATCH] Improve notes to access deployed services (#7017) --- stable/mongodb/Chart.yaml | 2 +- stable/mongodb/templates/NOTES.txt | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/stable/mongodb/Chart.yaml b/stable/mongodb/Chart.yaml index 03c179fad8..8ec7ab0811 100644 --- a/stable/mongodb/Chart.yaml +++ b/stable/mongodb/Chart.yaml @@ -1,5 +1,5 @@ name: mongodb -version: 4.0.4 +version: 4.0.5 appVersion: 3.6.6 description: NoSQL document-oriented database that stores JSON-like documents with dynamic schemas, simplifying the integration of data in content-driven applications. keywords: diff --git a/stable/mongodb/templates/NOTES.txt b/stable/mongodb/templates/NOTES.txt index 65dfb86bfd..160da8c743 100644 --- a/stable/mongodb/templates/NOTES.txt +++ b/stable/mongodb/templates/NOTES.txt @@ -60,8 +60,7 @@ To connect to your database from outside the cluster execute the following comma {{- else if contains "ClusterIP" .Values.service.type }} - export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app={{ template "mongodb.name" . }}" -o jsonpath="{.items[0].metadata.name}") - kubectl port-forward --namespace {{ .Release.Namespace }} $POD_NAME 27017:27017 & + kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "mongodb.fullname" . }} 27017:27017 & mongo --host 127.0.0.1 {{- if .Values.usePassword }} -p $MONGODB_ROOT_PASSWORD{{- end }} {{- end }}