diff --git a/blueprints/networking/psc-glb-and-armor/README.md b/blueprints/networking/psc-glb-and-armor/README.md index 782776473..fb2ba241a 100644 --- a/blueprints/networking/psc-glb-and-armor/README.md +++ b/blueprints/networking/psc-glb-and-armor/README.md @@ -84,7 +84,14 @@ __Congratulations__! You have successfully deployed an HTTP Load Balancer with C You can simply invoke the service by calling - curl -H "Authorization: Bearer $(gcloud auth print-identity-token)" -H "Content-Type: application/json" http://$LB_IP + Check the default path: + curl -H "Authorization: Bearer $(gcloud auth print-identity-token)" -H "Content-Type: application/json" http://$LB_IP/anything + + Specifically call the producer A path: + curl -H "Authorization: Bearer $(gcloud auth print-identity-token)" -H "Content-Type: application/json" http://$LB_IP/anything/a/* + + Specifically call the producer B path: + curl -H "Authorization: Bearer $(gcloud auth print-identity-token)" -H "Content-Type: application/json" http://$LB_IP/anything/b/* ## Cleaning up your environment diff --git a/blueprints/networking/psc-glb-and-armor/consumer.tf b/blueprints/networking/psc-glb-and-armor/consumer.tf index 19e563213..cae72245e 100644 --- a/blueprints/networking/psc-glb-and-armor/consumer.tf +++ b/blueprints/networking/psc-glb-and-armor/consumer.tf @@ -89,12 +89,12 @@ resource "google_compute_url_map" "default" { default_service = google_compute_backend_service.backend-a.id path_rule { - paths = ["/b/*"] + paths = ["/anything/b/*"] service = google_compute_backend_service.backend-b.id } path_rule { - paths = ["/*"] + paths = ["/anything/a/*"] service = google_compute_backend_service.backend-a.id } }