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

Commit

Permalink
fix the master sentinel
Browse files Browse the repository at this point in the history
  • Loading branch information
jwaldrip committed Aug 16, 2017
1 parent f18c8dc commit 517dc8a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build-and-push.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
image="commercialtribe/redis-sentinel-sidecar:v20170816.18"
image="commercialtribe/redis-sentinel-sidecar:v20170816.19"

login(){
docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
Expand Down
2 changes: 1 addition & 1 deletion k8s/redis-node-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ spec:

# Sidecar
- name: redis-sidecar
image: commercialtribe/redis-sentinel-sidecar:v20170816.18
image: commercialtribe/redis-sentinel-sidecar:v20170816.19
imagePullPolicy: Always
env:
- name: POD_NAMESPACE
Expand Down
3 changes: 3 additions & 0 deletions sidecar.sh
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ boot(){
# wait, as things may still be failing over
sleep $(($failover_timeout / 1000))

# Montior this host by default
sentinel-monitor $ip

# Check to ensure both the sentinel and redis are up,
# if not, exit with an error
ping-both || panic "redis and/or sentinel is not up"
Expand Down

0 comments on commit 517dc8a

Please sign in to comment.