From 809c352ad1e06a3cfbafe1a469b0688840e99ed0 Mon Sep 17 00:00:00 2001 From: Matt Martyn Date: Wed, 13 Mar 2019 21:44:47 -0400 Subject: [PATCH] [redis-ha] Master pod set announce IP (#12157) * [redis-ha] Fixing issue with announce ip on master Signed-off-by: Matt Martyn * [redis-ha] Fixing issue with announce ip on master - version bump Signed-off-by: Matt Martyn --- stable/redis-ha/Chart.yaml | 2 +- stable/redis-ha/templates/redis-ha-configmap.yaml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/stable/redis-ha/Chart.yaml b/stable/redis-ha/Chart.yaml index 19b57d053f..9a11e90d45 100644 --- a/stable/redis-ha/Chart.yaml +++ b/stable/redis-ha/Chart.yaml @@ -5,7 +5,7 @@ keywords: - redis - keyvalue - database -version: 3.3.0 +version: 3.3.1 appVersion: 5.0.3 description: Highly available Kubernetes implementation of Redis 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/redis-ha-configmap.yaml b/stable/redis-ha/templates/redis-ha-configmap.yaml index edc753b797..1b31ea07a8 100644 --- a/stable/redis-ha/templates/redis-ha-configmap.yaml +++ b/stable/redis-ha/templates/redis-ha-configmap.yaml @@ -74,8 +74,9 @@ data: echo "Setting up defaults" if [ "$INDEX" = "0" ]; then echo "Setting this pod as the default master" - sed -i "s/^.*slaveof.*//" "$REDIS_CONF" + redis_update "$ANNOUNCE_IP" sentinel_update "$ANNOUNCE_IP" + sed -i "s/^.*slaveof.*//" "$REDIS_CONF" else DEFAULT_MASTER="$(getent hosts "$SERVICE-announce-0" | awk '{ print $1 }')" if [ -z "$DEFAULT_MASTER" ]; then