Skip to navigation

Create a load balancer

Creating a load balancer gives your VMs one public IP address. In the portal it is one form. In the API it is one POST, which starts an operation; the load balancer is ready when that operation succeeds, usually within half a minute.

If you’re new to load balancers, read the Load Balancers overview first.

When to use each type

You pick the location and type once, at creation. To change them later, create a new load balancer.

Your trafficTypeForwarding rule (example)
A website or API over plain HTTPApplication (Layer 7)HTTP 80 → HTTP 8080
A database, queue, SSH or any other TCP serviceNetwork (Layer 4)TCP 5432 → TCP 5432
HTTPS that your VMs decrypt with their own certificateNetwork (Layer 4)TCP 443 → TCP 443 (TLS passthrough)
Game servers or other UDP trafficNetwork (Layer 4)UDP 27015 → UDP 27015

HTTPS with the certificate on the load balancer isn’t available yet. See SSL and TLS termination.

How it works

  1. You choose a location, type, nodes, forwarding rules, targets, a health check and an algorithm.
  2. IBEE checks every target first. If the location can’t reach a target, the request is refused before anything is reserved.
  3. IBEE accepts the request and starts a create operation. The load balancer shows Creating while its nodes start and its public IP address is assigned.
  4. When the operation succeeds, the status is Active and the address appears. Traffic goes only to targets that pass the health check.

Before you begin

  • A verified organization. Until it is verified, the portal shows “Complete account verification to create resources”. See Verify your identity.
  • A first wallet top-up of at least ₹500. See Add billing.
  • One or more running VMs in the location, each with its own public IP address, and your app listening on the same port on every VM. See Attach VMs.
  • That port open in each VM’s firewall group. See Create firewall rules.
  • For the API: an API token with load-balancer.write (and load-balancer.read to poll), and your workspace ID: the number after /workspaces/ in the portal’s address bar.

Create a load balancer in the portal

1

Open Load Balancers

In the sidebar, under Network & Security, click Load Balancer. Then click Create Load Balancer. If you have none yet, the page says “No load balancers. Spread HTTP, TCP or UDP traffic across your VMs from one IP address.” with the same button.

2

Fill in Basics

FieldWhat to enter
LocationWhere the load balancer runs, for example Amaravati. It decides which VMs can be targets. Can’t change later.
TypeApplication (Layer 7) or Network (Layer 4). Each tile shows its price per node, for example ₹1.69/hr per node. Can’t change later.
NameUp to 80 characters, for example orders-web
Nodes1 (default) up to the most the location allows. The note under it reads “1 node: no redundancy” for one node, and shows the total hourly price.
3

Add forwarding rules

Under Routing, the Preview shows how traffic will flow. Each Forwarding rule sends traffic from an incoming port to a backend port on every target. At least one rule is required. Click Add rule for more.

FieldApplication (Layer 7)Network (Layer 4)
Incoming protocolHTTP. HTTPS is shown but disabled: “Needs a TLS certificate. Coming soon”.TCP (“Includes TLS passthrough”) or UDP (“UDP datagrams”)
Incoming PortThe port clients connect to, 1–65535The same
Backend protocolHTTPThe same as the incoming protocol
Backend PortThe port your app listens on, 1–65535The same
4

Add targets

Under Targets, click Add VMs and select the VMs that serve the traffic. You can search by name. The list shows the workspace’s VMs in the chosen location. Every rule forwards to all of the selected VMs.

5

Check the health check

Under Health check, the check is on and set to Port is open, with “Every 10s · 3s timeout · unhealthy after 3 fails · healthy after 1 pass”. You can switch to HTTP response and enter a path, or click Edit timing. See Health checks.

6

Choose the algorithm and options

Under Algorithm and options, keep Least request (the default) or choose Round robin. See Algorithms.

Options shows Sticky sessions (“Keep a visitor on the same target with a cookie.”) for an Application load balancer, or Proxy Protocol (“Sends the client’s original address to your targets. Turn on only if they’re set up to accept it.”) for a Network load balancer. Both are off by default. Proxy Protocol is proxy_protocol (v1 or v2) on a TCP target group in the API. Sticky sessions aren’t available yet: the current gateway refuses them.

7

Add firewall rules (optional)

Under Firewall, Firewall rules let you “Allow or block source IPs on each incoming port. Without rules, anyone can connect.” Click Add rule, choose Allow or Block, enter a Source IP or CIDR such as 203.0.113.0/24, and pick the Incoming port. Then set Everyone else to Allowed or Blocked. A block wins over an allow. Firewall rules for UDP ports are available only in locations that support them.

In the API this is firewall: {"mode": "restricted", "rules": [{"address_family": "IPv4", "protocol": "TCP", "source": "203.0.113.0/24", "port": 443, "action": "allow"}]}. mode public (the default) accepts everyone; up to 100 rules.

8

Create

Check the price in the bottom bar, then click Create Load Balancer. You see Creating load balancer "orders-web", and the load balancer’s page opens with the progress. When the status is Active, Overview → Connect shows the Public IP address.

Create a load balancer with the API

1

Choose a region

curl "https://api.ibee.ai/v1/networking/load-balancers/regions?workspace_id=710995" \
-H "Authorization: Bearer $IBEE_TOKEN"

Each region has an id (send it as region_id), a name, a site_id, max_nodes (the most nodes one load balancer can have there) and capabilities:

CapabilityWhen true
private_targetsTargets can be private addresses in a VPC. When false, use VMs with their own public IP.
udp_firewallUDP listeners are protected by the region’s network policy
2

Send the create request

Send the full specification. Every write needs an Idempotency-Key header: 8–128 printable characters, unique for this change. If the call times out, send it again with the same key and body to get the same operation back.

curl -X POST "https://api.ibee.ai/v1/networking/load-balancers?workspace_id=710995" \
-H "Authorization: Bearer $IBEE_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: orders-web-create-1" \
-d '{
"name": "orders-web",
"region_id": "01a1e3fe-3104-7563-ad37-95f90ab93ef3",
"traffic_type": "http",
"node_count": 1,
"listeners": [
{"name": "http-80", "protocol": "HTTP", "port": 80, "target_group": "web"}
],
"target_groups": [
{
"name": "web",
"protocol": "HTTP",
"algorithm": "least_request",
"targets": [
{"kind": "vm", "resource_id": "vm-7f3c2d1e", "port": 8080},
{"kind": "vm", "resource_id": "vm-8a4d3e2f", "port": 8080}
],
"health_check": {"protocol": "TCP", "interval_seconds": 10, "timeout_seconds": 3}
}
]
}'

The second example forwards port 2222 on the load balancer to SSH on the VM, which is an easy way to test a Network load balancer.

A successful call answers 202 with the create operation:

{
"id": "01a20a76-33ef-7e84-8208-4477d6978188",
"lb_id": "01a20a76-3031-7a94-aa8d-c8ed59184c0f",
"kind": "create",
"status": "queued",
"requested_generation": 1,
"attempts": 0,
"reason": null,
"created_at": "2026-11-24T10:15:02Z",
"completed_at": null
}

lb_id is the new load balancer’s ID.

3

Wait for the operation

curl "https://api.ibee.ai/v1/networking/load-balancers/operations/01a20a76-33ef-7e84-8208-4477d6978188?workspace_id=710995" \
-H "Authorization: Bearer $IBEE_TOKEN"

Repeat every 10 seconds until completed_at is set. Then status is succeeded, or failed with a reason. A create took about 22–24 seconds in our tests.

4

Read the address

curl "https://api.ibee.ai/v1/networking/load-balancers/01a20a76-3031-7a94-aa8d-c8ed59184c0f?workspace_id=710995" \
-H "Authorization: Bearer $IBEE_TOKEN"

These are the fields you need next:

{
"id": "01a20a76-3031-7a94-aa8d-c8ed59184c0f",
"name": "orders-web",
"traffic_type": "http",
"node_count": 1,
"observed_state": "active",
"version": 1,
"conditions": {
"configuration_ready": true,
"frontend_ready": true,
"backend_ready": true,
"reason": null,
"addresses": ["103.149.10.86"]
}
}

conditions.addresses holds the public IP address clients connect to. It is empty until frontend_ready is true. The response also has spec, the full specification you sent, and version, which you need to change the load balancer.

Request body

FieldRequiredValue
nameYes1–80 characters
region_idYesA region’s id
traffic_typeYeshttp (Application, Layer 7) or network (Network, Layer 4)
node_countNo1 (default) up to the region’s max_nodes
listenersYes1–32 listeners, the forwarding rules. See below.
target_groupsYes1–32 target groups. See below.
vpc_idNoLeave it out for VMs with their own public IP. Use it only for private targets in a region whose private_targets is true.
scope, capacity_mode, visibility, loggingNoLeave them out to get the defaults: regional, fixed, external, logging off

Listener (one per incoming port):

FieldRequiredValue
nameYesLowercase letters, digits and hyphens, starting with a letter, up to 63 characters, for example http-80
protocolYesHTTP or HTTPS on an http load balancer; TCP or UDP on a network one
portYes1–65535. Two listeners can’t use the same port on the same transport (TCP or UDP).
target_groupYesThe name of a target group. An HTTP or HTTPS listener needs an HTTP group; TCP needs TCP; UDP needs UDP.
hostnameNoHTTP and HTTPS listeners only; up to 253 characters
certificate_refNoHTTPS only. See SSL and TLS termination.
rulesNoHTTP and HTTPS only. Up to 50 path rules, each with a target_group, a path_prefix that starts with / (default /), and up to 16 headers. Requests whose path starts with the prefix go to that group.

Target group (the VMs behind one or more listeners):

FieldRequiredValue
nameYesSame rules as a listener name, for example web
protocolYesHTTP, TCP or UDP
algorithmNoleast_request (default) or round_robin
targetsNoUp to 100. A group with no targets can’t serve traffic. See Attach VMs.
health_checkNoSee Health checks. null turns it off.

Verify

  1. If you just created the VMs, wait a little. A new VM reports running about 20 seconds before its SSH or web server answers.

  2. Check that the status is Active (observed_state active) and copy the address.

  3. Send traffic to the address:

    curl -i http://103.149.10.86/

    For the Network example, connect to the incoming port: ssh -p 2222 USER@103.149.10.86.

  4. To use your own domain, add an A record at your DNS provider that points to the address.

  5. In the portal, the Metrics tab shows Connections and Throughput, plus Requests and 5xx errors for an Application load balancer. With the API, use GET /networking/load-balancers/LB_ID/metrics and GET /networking/load-balancers/LB_ID/metrics/history?window=1h (1h, 24h or 7d).

Change a load balancer

You can’t change the location or type. Everything else can change.

In the portal: open the load balancer and click Settings (or Actions → Edit settings). Each part (Nodes, Firewall rules, Forwarding rules, Targets, Health check, Algorithm and options) has its own Edit and Save. To change the node count, click Actions → Resize. If someone else changed the load balancer in the meantime, you see “This load balancer was changed elsewhere. Review the latest version and try again.”

With the API: PUT /networking/load-balancers/LB_ID replaces the whole specification. Read the load balancer first, then send its version and the complete new specification. Anything you leave out of the specification is removed or reset to its default. This request switches the algorithm to round robin:

curl -X PUT "https://api.ibee.ai/v1/networking/load-balancers/01a20a76-3031-7a94-aa8d-c8ed59184c0f?workspace_id=710995" \
-H "Authorization: Bearer $IBEE_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: orders-web-update-2" \
-d '{
"version": 1,
"specification": {
"name": "orders-web",
"region_id": "01a1e3fe-3104-7563-ad37-95f90ab93ef3",
"traffic_type": "http",
"node_count": 1,
"listeners": [
{"name": "http-80", "protocol": "HTTP", "port": 80, "target_group": "web"}
],
"target_groups": [
{
"name": "web",
"protocol": "HTTP",
"algorithm": "round_robin",
"targets": [
{"kind": "vm", "resource_id": "vm-7f3c2d1e", "port": 8080},
{"kind": "vm", "resource_id": "vm-8a4d3e2f", "port": 8080}
],
"health_check": {"protocol": "TCP", "interval_seconds": 10, "timeout_seconds": 3}
}
]
}
}'

The call answers 202 with an update operation; wait for it as for a create (about 12 seconds in our tests). If the load balancer changed since you read it, the call answers 409 with "error": "version_conflict" and “Load balancer changed; reload before updating”: read it again and send the new version.

Load balancers made by a Kubernetes cluster (managed_by ccm) can’t be changed or deleted here.

Delete a load balancer

Deleting a load balancer stops its traffic and releases its IP address. Move your DNS records first. Your target VMs are not affected.

In the portal:

  1. On the Load Balancers list, click the delete icon on the load balancer’s row, or open it and click Actions → Delete.
  2. In the Delete load balancer? dialog, type the load balancer’s name.
  3. Click Delete load balancer. You see Deleting load balancer "orders-web".

With the API:

curl -X DELETE "https://api.ibee.ai/v1/networking/load-balancers/01a20a76-3031-7a94-aa8d-c8ed59184c0f?workspace_id=710995" \
-H "Authorization: Bearer $IBEE_TOKEN" \
-H "Idempotency-Key: orders-web-delete-1"

The call answers 202 with a delete operation, which took 34–42 seconds in our tests. After that, GET /networking/load-balancers no longer lists it. Add include_deleted=true to see deleted load balancers, with observed_state deleted.

List load balancers

GET /networking/load-balancers?workspace_id=710995 returns items, newest first, and a next_cursor. Send cursor with that value for the next page, and limit (1–100, default 50) for the page size. The portal’s Load Balancers list shows Name, Status, Type, Ports, IP address, Location, Nodes and Created, with a Refresh button.

Limits and timing

ItemValue
Time to createAbout 22–24 seconds until the create operation succeeds
Time to apply a changeAbout 12 seconds
Time to deleteAbout 34–42 seconds
New VMsReport running about 20 seconds before SSH or a web server answers
Name1–80 characters
Nodes1 up to the location’s max_nodes (at most 5)
Forwarding rules (listeners)1–32; ports 1–65535
Target groups1–32
TargetsUp to 100 per target group
Path rulesUp to 50 per listener
Idempotency-Key8–128 printable characters
Request bodyUp to 64 KiB

Times are from tests on 24 November 2026 and can vary.

Troubleshooting

You seeWhat it meansWhat to do
”Complete account verification to create resources”Your organization isn’t verifiedComplete identity verification.
”Load balancer name is required” or “Use up to 80 characters.”The name is empty or too longEnter 1–80 characters.
”Choose an incoming protocol for each forwarding rule”A rule has no Incoming protocolChoose HTTP, TCP or UDP.
”Choose a backend protocol for each forwarding rule”A rule has no Backend protocolChoose the backend protocol that matches the incoming one.
”Forwarding rule ports must be between 1 and 65535”A port is empty or out of rangeEnter both ports.
”Two forwarding rules use TCP port 80”Two rules share an incoming portUse each incoming port once.
”Add at least one target”No VM is selectedClick Add VMs and select at least one.
HTTPS is disabled: “Needs a TLS certificate. Coming soon”Certificates can’t be added yetUse HTTP, or a Network load balancer with TCP for TLS passthrough.
422 target_not_usable, for example “A backend VM is not available to this tenant”The location can’t reach a target, for example a VM without its own public IP. Nothing was created.See Attach VMs → Troubleshooting.
402 billing_denied with billing_reason initial_topup_required and “Add at least ₹500 to your wallet (Billing → Purchase credits in the portal) before creating resources.”Your organization hasn’t made its first top-up. required_topup_minor is 50000 (₹500) and billing_currency is INR.Add credits, then send the same request again.
402 billing_denied with insufficient_balance or credit_limit_exceededBilling refused the new resourceTop up your wallet, then try again.
402 billing_denied with resource_limit_reachedYour plan’s limit is used upDelete a load balancer you don’t need, or contact support.
403 insufficient_scopeThe token is read-only for load balancersUse a token with load-balancer.write.
403 verification_requiredThe token’s user hasn’t completed identity verificationComplete verification, or use another user’s token.
409 version_conflict “Load balancer changed; reload before updating”The version you sent is staleRead the load balancer again and send its current version.
409 idempotency_conflictYou reused an Idempotency-Key with a different bodyUse a new key for a new change.
409 idempotency_in_progressThe same request is still runningWait for Retry-After, then retry with the same key and body.
423 organization_suspendedYour organization is suspended, so changes are refusedSee Billing and usage.
Creating with “Waiting for capacity in this region”The location has no free capacity yetWait, or contact support if it lasts.
Creating with “Connecting to your targets”, or Failed with “One or more targets couldn’t be reached”The load balancer can’t attach a targetCheck each target as in Attach VMs.
conditions.addresses is emptyThe public address isn’t assigned yetWait until frontend_ready is true.
Active, but requests failNo target passes its health check, or a firewall blocks the portSee Health checks → Troubleshooting.