Skip to content

Error to setup sentinnel and replicate data between nodes #4

@julioo

Description

@julioo

Hello,

Pods are setup on my GCP cluster but sentinel returns an error and replication between nodes is not ok.

If I try to determine which server the Redis sentinel believes is the master, I get the following :
$ kubectl exec redis-2 -c redis -- redis-cli -p 26379 sentinel get-master-addr-by-name redis
Could not connect to Redis at 127.0.0.1:26379: Connection refused

If I check sentinel logs
$ kubectl logs statefulsets/redis sentinel
Waiting for server
ping: bad address 'redis-0.redis'

And if I set foo 10 on redis-0 I don't get key on redis-2

Why I get bad address ?
What can I do ?
Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions