Skip to content

Create an NLB

STACKIT Network Load Balancers (NLBs) can be created via the STACKIT Portal, STACKIT API, or the STACKIT Terraform provider.

Before you create an NLB, there are some considerations you should make. Use the list below to decide and collect the information you need before you start:

  • Naming: Choose a DNS-compliant name (lowercase, hyphens, numbers).
  • Visibility: Decide whether the NLB is public or private. For public access, determine if you will attach an existing Public IP or let STACKIT assign one automatically. For private access, expect an automatically assigned private IP.
  • Performance: Estimate the expected number of connections to the services/servers behind the load balancer, so you’re able to choose an appropriate service plan.
  • Network: Determine the STACKIT network where the NLB will operate. All targets must be in the same network as the load balancer.
  • Security posture: If exposing admin or sensitive ports publicly, plan ACL rules (i.e. permitted source IP ranges).
  • Ports and protocols (listeners): List the external ports you want to expose and the protocol for each (TCP or UDP). Optionally define a descriptive listener name per port/protocol.
  • Target pools and targets: For each listener, define a target pool with a target port and the backend targets that will receive traffic. Collect each target’s IP address (and optional display name). Ensure every target resides in the same network as the NLB.
  • Session persistence: Decide if multiple requests in a user session must reach the same target. If yes, enable session persistence (based on source IP). Enabling persistence switches the load balancing algorithm from Round Robin to Maglev.
  • Health checks: Decide whether to keep sensible defaults or customize. Defaults typically are: Down after 3 checks, check interval 5 seconds, up after 1 check. If customizing, decide the desired interval and up/down thresholds.

Optionally, you can get an overview of the impending costs by using the STACKIT Pricing Calculator to estimate expenses based on your planned NLB configuration. When using the Portal, costs will be calculated and displayed dynamically in the UI during the creation process.

Follow the steps below to create an NLB using your preferred method.

Navigate to portal.stackit.cloud, select your desired project and follow these steps:

  1. In the sidebar under Networking, click on Network Load Balancer.
  2. Click the Create Network Load Balancer button.
  3. Fill in the required fields with the information you prepared earlier.
  4. Click the Order fee-based button to create the NLB.

Done! Your STACKIT Network Load Balancer is being created and will be ready to use shortly.

As a result, two new instances will appear under Computing > Server, as demonstrated below. These instances represent the load balancer nodes that handle incoming traffic and distribute it to your defined targets:

Two load balancer nodes that handle the incoming traffic, as seen under the Server view of the Portal.

You may also find newly created security groups associated with your NLB under Networking > Security Groups. This will not be the case if you disabled the target security group assignment during NLB creation:

Several security groups associated with the NLB, as seen under the Security Groups view of the Portal.