You create a load balancer in your application by configuring and connecting distinct Cloud Load Balancing frontend and backend components. The separate components help you apply distinct controls for external and internal traffic, and prevent direct access to data.
The regional Cloud Load Balancing backend component helps you manage load balancer traffic distribution settings, including the protocol used to connect to backends, session settings, health checks, and timeouts. These settings provide fine-grained control over how your load balancer behaves. You can configure the following backends:
Serverless NEG: A list of serverless Cloud Run or Cloud Run functions applications as backends.
Managed Instance Group (MIG): A list of Compute Engine instance groups as backends.
For more information, see Backend services overview.
This document describes the connections and parameters you can configure when using App Design Center to create a regional Cloud Load Balancing backend service. The configuration parameters are based on the terraform-google-regional-lb-http Terraform module.
Component connections
To create a complete Cloud Load Balancing component, you must connect your regional Cloud Load Balancing backend to at least one regional Cloud Load Balancing frontend. Connected Cloud Load Balancing components are displayed as a group in the design canvas.
The following table includes the components that you can connect to a regional Cloud Load Balancing backend, and the resulting updates to your application and its generated Terraform code.
Connected component |
Application updates |
Background information |
|---|---|---|
|
Set up a regional external Application Load Balancer with Cloud Run | |
Regional Cloud Load Balancing frontend (required) |
|
URL maps overview |
|
Set up a regional external Application Load Balancer with VM instance group backends |
Required configuration parameters
If your template includes a regional Cloud Load Balancing backend component, you must configure the following parameters before you deploy.
Parameter name |
Description and constraints |
Background information |
|---|---|---|
Project ID |
The project where you want to deploy the Cloud Load Balancing backend service. |
Configure components |
Region |
The region where the load balancer backend service is created. | region |
Name |
Name for the load balancer backend service. | name |
Optional configuration parameters
The following parameters are optional. To display advanced parameters, in the Configuration area, select Show advanced fields.
What's next
You must connect your backend component to a frontend component. To configure the frontend component, see Configure a regional Cloud Load Balancing frontend in Application Design Center.