Configuring load balancer using TCP on Google Cloud Platform

Last Updated : Jan 18, 2023 |
Prolog information
Before you begin
  • Create a health check, if it is not already created.
  • Create an instance group, if it is not already created.
  1. Log on to the Google Cloud Platform.
  2. Navigate to Network servicesLoad balancing and click Create load balancer.
  3. For TCP Load Balancing, click Start configuration.
  4. For Internet facing or internal only, select Only between my VMs.
  5. For Multiple regions or single region, select Single region only and click Continue.
  6. For Backend Services, enter Name and Region.
  7. For Network, select the required network from the list.
  8. For Backend configuration, do the following:
    1. For new back-ends, choose the instance group that you added and click Done.
    2. Click Add backend.
    3. Choose another instance group that you added and select Use this instance group as a failover group for backup.
    4. Click Done.
    5. Select Health check.
    6. For Drop traffic, toggle on the Enable (Drop new connections if no healthy VMs) option.
    7. For Connection draining on failover, toggle off the Enable connection draining on failover option.
  9. For Frontend configuration, do the following:
    1. Enter Name.
    2. Select Subnetwork from the list.
    3. From Internal IP, choose Shared.
      ADDITIONAL INFORMATION:
      If you reserve your IP, choose ephemeral Custom and provide the reserved IP.
    4. To create a new IP address, click Reserve a static internal IP address.
      ADDITIONAL INFORMATION:
      Enter the Name and from the Static IP address drop-down list, select Let me choose to provide your IP address.
    5. Click Reserve.
    6. For Ports, do one of the following:
      ADDITIONAL INFORMATION:
      • If you know the port numbers, select Multiple and enter comma-separated port numbers. For example, for SIP TLS signaling group, enter 5061.
      • If you do not know the port numbers, select All.
    7. Click Done.
  10. Click Create.