Let's say we have two Google Cloud instances, how can we configure a load balancer to route traffic to one of these VMs, based on the client IP?
As stated in the official documentation (https://cloud.google.com/load-balancing/docs/https/traffic-management), external HTTP(S) Load Balancing supports advanced traffic management functionality that enables you to route traffic with header-based and parameter-based routing, and the client IP is available in the header (Getting Orgin IP From Load Balancer), but there are no clear examples for this.
Below an example of the flow: