spotahome / redis-operator

Redis Operator creates/configures/manages high availability redis with sentinel automatic failover atop Kubernetes.
Apache License 2.0
1.49k stars 356 forks source link

Error: connect ECONNREFUSED 127.0.0.1:6379 #635

Closed tamis-laan closed 12 months ago

tamis-laan commented 12 months ago

Problems connecting to redis, might be related to operator: https://github.com/redis/ioredis/issues/1781

I'm trying to connect to the redis cluster through the service that routes traffic to the sentinels. Here is the deployment spec:

apiVersion: databases.spotahome.com/v1
kind: RedisFailover
metadata:
  name: redis
spec:
  sentinel:
    replicas: 3
    resources:
      requests:
        cpu: 10m
        memory: 20Mi
      limits:
        cpu: 100m
        memory: 40Mi
  redis:
    replicas: 3
    resources:
      requests:
        cpu: 10m
        memory: 20Mi
      limits:
        cpu: 100m
        memory: 40Mi