How to Debug Redis Sentinel

Connect to a Redis Sentinel Pod and start a redis-cli.

user@computer:~$ kubectl exec redis-node-0 -c sentinel -it -- sh
$ redis-cli -p 26379 -a foobarbaz12
127.0.0.1:26379>

The following commands can be executed to check Redis. Commands can be found here: redis.io/topics/sentinel

127.0.0.1:26379> info
127.0.0.1:26379> sentinel replicas mymaster
127.0.0.1:26379> SENTINEL get-master-addr-by-name mymaster
127.0.0.1:26379> SENTINEL CKQUORUM mymaster