Skip to content
This repository was archived by the owner on Apr 24, 2018. It is now read-only.

Commit 517dc8a

Browse files
committed
fix the master sentinel
1 parent f18c8dc commit 517dc8a

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

build-and-push.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env bash
2-
image="commercialtribe/redis-sentinel-sidecar:v20170816.18"
2+
image="commercialtribe/redis-sentinel-sidecar:v20170816.19"
33

44
login(){
55
docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD

k8s/redis-node-statefulset.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ spec:
5858

5959
# Sidecar
6060
- name: redis-sidecar
61-
image: commercialtribe/redis-sentinel-sidecar:v20170816.18
61+
image: commercialtribe/redis-sentinel-sidecar:v20170816.19
6262
imagePullPolicy: Always
6363
env:
6464
- name: POD_NAMESPACE

sidecar.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@ boot(){
122122
# wait, as things may still be failing over
123123
sleep $(($failover_timeout / 1000))
124124

125+
# Montior this host by default
126+
sentinel-monitor $ip
127+
125128
# Check to ensure both the sentinel and redis are up,
126129
# if not, exit with an error
127130
ping-both || panic "redis and/or sentinel is not up"

0 commit comments

Comments
 (0)