4 ms·
How do you solve this problem? Can you use headless K8S services for that?
by iagooar 9y ago
How do you solve this problem? Can you use headless K8S services for that?
- brango 9y agoYou can use a StatefulSet which gives a fixed hostname per pod. Then you can have a sidecar pod that monitors the cluster, discovers the IPs of all pods, and uses redis_trib to create and maintain the cluster. It's a hassle to make it robust though.
- iagooar 9y agoDon't see why you would do that, instead of a headless service.