From 058bc4da542abedaffa9c8c5396df13e8b6abcbe Mon Sep 17 00:00:00 2001 From: Juan Ariza Toledano Date: Tue, 7 Aug 2018 15:57:03 +0200 Subject: [PATCH] Improve notes to access deployed services (#7031) --- stable/redis/Chart.yaml | 2 +- stable/redis/templates/NOTES.txt | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/stable/redis/Chart.yaml b/stable/redis/Chart.yaml index c27c7b9552..815a73e1c7 100644 --- a/stable/redis/Chart.yaml +++ b/stable/redis/Chart.yaml @@ -1,5 +1,5 @@ name: redis -version: 3.7.3 +version: 3.7.4 appVersion: 4.0.10 description: Open source, advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets and sorted sets. keywords: diff --git a/stable/redis/templates/NOTES.txt b/stable/redis/templates/NOTES.txt index 47a72bdde2..972035f277 100644 --- a/stable/redis/templates/NOTES.txt +++ b/stable/redis/templates/NOTES.txt @@ -81,8 +81,7 @@ To connect to your database from outside the cluster execute the following comma {{- else if contains "ClusterIP" .Values.master.service.type }} - export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app={{ template "redis.name" . }}" -o jsonpath="{.items[0].metadata.name}") - kubectl port-forward --namespace {{ .Release.Namespace }} $POD_NAME {{ .Values.master.port }}:{{ .Values.master.port }} + kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "redis.fullname" . }} {{ .Values.master.port }}:{{ .Values.master.port }} & redis-cli -h 127.0.0.1 -p {{ .Values.master.port }} {{- if .Values.usePassword }} -a $REDIS_PASSWORD{{ end }} {{- end }}