From aedcdbb37133e3f5f97fcc997693f46449b31996 Mon Sep 17 00:00:00 2001 From: Tachibana waita Date: Mon, 16 Jul 2018 00:26:55 +0900 Subject: [PATCH] fix redis-ha NOTE.txt, stable/redis-ha don't create master-0 pod (#6131) --- stable/redis-ha/Chart.yaml | 2 +- stable/redis-ha/templates/NOTES.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stable/redis-ha/Chart.yaml b/stable/redis-ha/Chart.yaml index ed14951892..1e474a3257 100644 --- a/stable/redis-ha/Chart.yaml +++ b/stable/redis-ha/Chart.yaml @@ -5,7 +5,7 @@ keywords: - redis - keyvalue - database -version: 2.2.0 +version: 2.2.1 appVersion: 4.0.8-r0 description: Highly available Redis cluster with multiple sentinels and standbys. icon: https://upload.wikimedia.org/wikipedia/en/thumb/6/6b/Redis_Logo.svg/1200px-Redis_Logo.svg.png diff --git a/stable/redis-ha/templates/NOTES.txt b/stable/redis-ha/templates/NOTES.txt index 4859c51814..fff018d0f2 100644 --- a/stable/redis-ha/templates/NOTES.txt +++ b/stable/redis-ha/templates/NOTES.txt @@ -18,7 +18,7 @@ To connect to your Redis server: {{- else }} 1. Run a Redis pod that you can use as a client: - kubectl exec -it {{ template "redis-ha.fullname" . }}-master-0 bash + kubectl exec -it $(kubectl get pod -o jsonpath='{range .items[*]}{.metadata.name} {.status.containerStatuses[0].state}{"\n"}{end}' -l redis-role=master | grep running | awk '{print $1}') bash 2. Connect using the Redis CLI: