I am trying to do A/B testing on two images and I can't figure out how to load balance between the two. I have seen various examples which talk about multiple instances of one image, but I have more than one. When I try go to example.com it just hits web1 (maybe because it's defined first, I am not sure). I have tried many different clients and it always goes to web1. Has anybody gotten something like this to work? I'd appreciate any help.
In your example you created two separate loadbalancers, each of which would load balance against a single service. The rule that had happend to match first worked, and that router / loadbalancer was used. The second one was never reachable because of that.