GCP Load balancing: connecting an URL Map as routing rules

185 views Asked by At

I recently created a load balancer on GCP which works as intended. I would like now to save the routing rules I created into a .yaml file in a repository and deploy any changes using the CLI.

I created my routing rules using the "advanced" section, and I provided hosts as text and URL matchers as a YAML file.

Load balancer routing rule

While searching for ways to do what I want, I read a lot about URL Maps which seem to answer my need : specifying host matchers, path matchers, and even tests ! I browse a lot of documentation pages and I could not see anywhere where I can link an URL Map to my load balancer.

More surprising, it seems that the "Routing Rules" section when I edit the loadbalancer is itself implementing an URL Map, but I cannot access the actual code behind it.

Two examples to illustrate :

1 - I can setup tests from the "simple host and path rule" view, but not in the "advanced" view

Simple configuration

2 - The description says "you can also submit a custom YAML routing config" but the only thing I can do is setting the path matchers as YAML, not even the host matchers...

Has somebody managed to do this via CLI? Not using terraform. Thank you!

0

There are 0 answers