Find the Best Cosmetic Hospitals

Explore trusted cosmetic hospitals and make a confident choice for your transformation.

“Invest in yourself — your confidence is always worth it.”

Explore Cosmetic Hospitals

Start your journey today — compare options in one place.

Google Cloud: Step by Step Guide to create Application Load Balancers in Google cloud

Step by Step Guide to create Application Load Balancers in Google cloud and allow HTTP and HTTPS both port to the vm running on 3000 port

Creating an Application Load Balancer (ALB) in Google Cloud Platform (GCP) to manage traffic on both HTTP and HTTPS, routing it to VM instances that serve content on port 3000, requires a series of steps involving several GCP services. This guide includes creating an instance template and managed instance group, configuring health checks, setting up the load balancer, and ensuring proper SSL configuration for HTTPS support.

Step 1: Prepare Your GCP Environment

  1. Log in to your Google Cloud Console.
  2. Select or create a GCP project.
  3. Enable billing for your project.
  4. Enable the Compute Engine API if it’s not already enabled.

Step 2: Configure Your Backend Service

Create an Instance Template

  1. Go to Compute Engine > Instance templates in the Cloud Console.
  2. Click Create instance template.
  3. Set up the template with your VM configuration. Make sure the startup script or the application configuration is set to serve content on port 3000.
  4. Click Create to save the template.

Create a Managed Instance Group

  1. Navigate to Compute Engine > Instance groups.
  2. Click Create instance group.
  3. Choose a Managed instance group type.
  4. Select the instance template you created earlier.
  5. Specify the instance group details like name, location, and the number of instances.
  6. Click Create.

Create a Health Check

  1. Go to Compute Engine > Health checks.
  2. Click Create a health check.
  3. Name your health check and select HTTP or HTTPS for the protocol. Set the port to 3000.
  4. Configure additional settings as needed, then click Create.

Step 3: Set Up the Load Balancer

Create the Load Balancer

  1. Navigate to Network Services > Load balancing.
  2. Click Create load balancer.
  3. Select Start configuration under the HTTP(S) Load Balancing card.
  4. Choose From Internet to my VMs and click Continue.
  5. Set up the backend configuration:
    • Click Create a backend service.
    • Select the instance group you created earlier.
    • Choose the health check you set up.
    • Ensure the Named Port is set to serve on port 3000.
    • Save and continue.
  6. Configure the frontend service:
    • You’ll create two frontend configurations, one for HTTP and one for HTTPS.
    • For HTTP:
      • Click Create a frontend IP and port.
      • Name your service, select HTTP as the protocol, and use port 80.
    • For HTTPS:
      • You need an SSL certificate. If you don’t have one, you can create or import one under Network Services > SSL certificates before proceeding.
      • After securing the certificate, create another frontend configuration.
      • Select HTTPS as the protocol, use port 443, and attach your SSL certificate.
  7. Click Create to finalize and deploy your load balancer.

Step 4: DNS Configuration (Optional)

  • For easier access, you may want to configure a DNS record to point to the IP address of your load balancer’s frontend configuration. This step makes it possible to access your VMs using a domain name instead of an IP address.

Step 5: Verification and Testing

  • After your load balancer is set up, test accessing your application through the IP addresses associated with the load balancer’s frontend services. You should be able to reach your application on port 3000 via both HTTP and HTTPS protocols.

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services — all in one place.

Explore Hospitals
I'm Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms. I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.

Related Posts

Team Foundation Server 2015 Installation Guide (SQL Express + Update 3)

Install Team Foundation Server 2015 using the original Microsoft download paths, with clear guidance for online, offline, and ISO-based setup. This revised guide also includes an installation workflow, command example, and practical pitfalls to avoid.

Read More

How to Access a Running Docker Container Shell: docker exec vs docker attach

Need a shell inside a running container that is already in detached mode? This updated guide shows the correct workflow, compares docker exec and docker attach, and explains when SSH does and does not make sense.

Read More

Host Your Own NuGet Feed: Local Source vs NuGet.Server vs NuGetGallery

Learn how to host a private NuGet feed using three practical approaches: a local folder source, NuGet.Server, and NuGetGallery. This revised guide includes setup steps, command examples, and a workflow diagram to help you choose the right model.

Read More

Publish NuGet Packages to NuGet.org: CLI Steps, Workflow, and CI Example

Learn how to publish a NuGet package to NuGet.org using either nuget.exe or the dotnet CLI. This revised guide includes a workflow diagram, command comparison, and a CI-friendly example.

Read More

How to Create NuGet Packages with nuget.exe (Assembly, .nuspec, and .csproj Methods)

Learn three practical ways to build NuGet packages using nuget.exe: from an existing assembly, from a convention-based folder layout, or directly from a Visual Studio project. This guide includes commands, folder conventions, token behavior, and common pitfalls.

Read More

Virtualization in DevOps: Using Vagrant, Docker, and Cloud Platforms Together

This guide explains how VM-based workflows, containers, and cloud platforms complement each other in DevOps. It includes a practical workflow, trade-off table, and command examples for day-to-day use.

Read More
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
0
Would love your thoughts, please comment.x
()
x