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

How to connect outside openshift cluster without hostNetwork #625

Closed matzik12 closed 9 months ago

matzik12 commented 1 year ago

Expected behaviour

I want to connect from outside the k8s cluster without using hostNetwork. My openshift cluster administrator doesnt want to provide this option to my redis. Is there any other way to do it? I found some bad ways that works for me but i want to find a better solution.

Environment

How are the pieces configured?

github-actions[bot] commented 11 months ago

This issue is stale because it has been open for 45 days with no activity.

Nold360 commented 11 months ago

MetalLB is your friend or use NodePort.

matzik12 commented 11 months ago

@Nold360 Hi and thanks for commenting, It is not possible for me because of using sentinel and more than one instance of redis. I will need 3 NodePorts and to check every time i connect who is the master redis, Im looking for beyter method and already found one. I made a service with NodePort that connects to the redis instance which has master label and than it also makes the switchover while connected to the redis. One little problem (which is ok for me cause i am using outside connections only in dev) is that the switchover of the service accures only when the labels changes between pods (takes me about 1-2 minutes).

github-actions[bot] commented 9 months ago

This issue is stale because it has been open for 45 days with no activity.

github-actions[bot] commented 9 months ago

This issue was closed because it has been inactive for 14 days since being marked as stale.