CommercialTribe / kube-redis

Redis on Kubernetes as StatefulSet
MIT License
34 stars 22 forks source link

redis-sentinel pod access is needed by predis #10

Closed ghost closed 6 years ago

ghost commented 7 years ago

To use predis (PHP Redis Client) and maybe other clients with kube-redis, the clients need to contact the redis-sentinel to get information about masters and clients. To get this to work, the service would need to be expanded or another service needs to be implemented:

apiVersion: v1
kind: Service
metadata:
  name: redis-nodes
  labels:
    service: redis
spec:
  ports:
    - port: 6379
      name: redis
    - port: 26379
      name: redis-sentinel
  selector:
    name: redis-node