-
Notifications
You must be signed in to change notification settings - Fork 16.9k
[stable/redis-ha] Can't connect to Redis from outside the Kubernetes cluster #14492
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Any further update will cause the issue/pull request to no longer be considered stale. Thank you for your contributions. |
@eladtamary I don't think this is a bug as much as a feature. I'm currently thinking of how to best manage this in my environment. By default, I think this chart was built to support internal comms. The decision should be made to |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Any further update will cause the issue/pull request to no longer be considered stale. Thank you for your contributions. |
This issue is being automatically closed due to inactivity. |
One solution to this is to create a loadbalancer service that points to all the master and slave. This can be used for reading. |
@AkashKrDutta This is no longer an issue as we have HAProxy as a loadbalancer. |
@DandyDeveloper Thanks for the info! Although the extra running of a deployment can be saved (the ha proxy) if we directly shift the labels using a PATCH request to the kuberntes api to just attach the required label. Will be testing both to see which is better! |
@DandyDeveloper & @AkashKrDutta Hi guys, Any clue? |
Describe the bug
When Redis client starts, it calls one of the sentinels to get the IP of the elected master.
It gets the internal IP of the pod and sends requests to this master.
When the client runs outside the K8S cluster, it fails to connect to the master since the IP is only accessible from within the K8S cluster.
Version of Helm and Kubernetes:
Any
Which chart:
redis-ha
What happened:
Connection refused when trying to initiate Redis client
What you expected to happen:
Client should be able to connect.
How to reproduce it (as minimally and precisely as possible):
The text was updated successfully, but these errors were encountered: