I use the K8s example the create a Reliable, Scalable Redis on Kubernetes. https://github.com/kubernetes/kubernetes/tree/master/examples/redis
The Redis master needs to get slave the origin IP and register to the sentinel. Sentinel will use to switch master when the master failed.
But My docker starts without the flag iptables=false(It will create an iptables like SNAT), so the redis slave source IP will be SNAT, and the master will get the flannel0's IP like 172.16.103.0.
I also add the flannel network to container connection between nodes.
So the question is "Is any way to get the source IP without removing the iptables flag, or another way to create a Reliable redis cluster."