Skip to content

Create an ALB

STACKIT Application Load Balancers (ALBs) can be created via the STACKIT Portal, STACKIT API, or the STACKIT Terraform Provider.

Before you create an ALB, 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 ALB 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.
  • Network: Determine the STACKIT network where the ALB will operate. All targets must be in the same network as the load balancer.
  • 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 ALB.
  • Health checks: Choose TCP or HTTP. For TCP, the ALB checks connectivity on the target port. For HTTP, configure the check path (e.g. /health) and the list of OK status codes (e.g. 200). Defaults are: interval 5 seconds, down after 3 failed checks, up after 1 successful check. Pick thresholds and interval as needed.
  • Ports, hosts and rules (listeners): For each listener, specify the external port, a host name (e.g. stackit.cloud or *.stackit.cloud), and rules that route to a target pool. Each rule must define a path type (exact or prefix) and a path (e.g. /foo).
  • Advanced listener settings:
    • WebSocket: Enable only if your app needs WebSocket. Confirm the backend supports HTTP Upgrade and long-lived connections.
    • HTTP headers: Pick header names and exact values that are reliably set by your app or gateway (e.g. User-Agent: Mozilla/5.0). Avoid user-controlled headers.
    • Cookie persistence: Use when session affinity is required. Choose a cookie name and TTL (in seconds). Ensure clients accept the cookie.
    • Query parameters: Route only on parameters that are consistently present. Define name and exact value to match (e.g. name=admin).
  • Security posture: If exposing admin or sensitive ports publicly, plan ACL rules (i.e. permitted source IP ranges).

Optionally, you can get an overview of the impending costs by using the STACKIT Pricing Calculator to estimate expenses based on your planned ALB 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 ALB 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 Application Load Balancer.
  2. Click the Create Application 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 ALB.

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

As a result, 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 ALB under Networking > Security Groups. This will not be the case if you disabled the target security group assignment during ALB creation:

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