Skip to main content

Creating and configuring a Load Balancer

This section describes how to configure a third-party load balancer for an Adeptia Rancher infrastructure deployment. The load balancer distributes incoming traffic across the application nodes, provides high availability, and ensures that requests are routed only to healthy backend servers.

The configuration process generally involves the following high-level steps:

  • Creating or configuring a Virtual IP (VIP) on the load balancer.
  • Defining frontend listener settings for incoming client traffic.
  • Configuring backend server pools consisting of RKE2 nodes.
  • Setting up health probes to monitor backend node availability.
  • Creating load-balancing rules to route traffic between frontend listeners and backend servers.

Prerequisites​

Before configuring the load balancer, ensure that the following requirements are met:

ItemDescription
Load BalancerA supported hardware or software load balancer capable of Layer 4 (TCP)
Rancher NodesLinux virtual machines or physical servers hosting Adeptia Rancher
Virtual IP (VIP)A dedicated IP address exposed by the load balancer for client access
DNS RecordsDNS entries that resolve hostname to the load balancer VIP
Firewall RulesNetwork access between the load balancer and Rancher nodes
TLS CertificateRequired if SSL/TLS termination is performed at the load balancer

Step 1: Configure the Frontend Listener​

Create a frontend listener that accepts incoming client requests.

Recommended settings:

SettingValue
Listener NameUser-defined
IP VersionIPv4
Frontend IPLoad Balancer VIP
ProtocolTCP or HTTPS
Port443 (recommended)

Step 2: Configure the Backend Server Pool​

Create a backend server pool containing all the Rancher nodes.

Example:

NodeIP Address
Node 110.32.4.6
Node 210.32.4.7
Node 310.32.4.10
WarningUse the private IP addresses of the Rancher nodes. Do not use public IP addresses.

Step 3: Configure Health Probes​

Create health probes to monitor the availability of backend nodes.

Recommended settings:

SettingValue
ProtocolTCP or HTTPS
Port443 (HTTPS)
Probe Interval5–30 seconds
Unhealthy Threshold2–3 failures

If your load balancer supports HTTP or HTTPS health checks, configure an application-specific health endpoint as recommended by your deployment architecture.

Step 4: Configure Load-Balancing Rules​

Create load-balancing rules that associate the frontend listener with the backend server pool.

Recommended settings:

SettingValue
Frontend ListenerPreviously created frontend listener
Backend PoolRancher server pool
ProtocolTCP or HTTPS
Frontend Port443, 9345, 6443
Backend Port443, 9345, 6443
Health ProbeConfigured health probe
Session PersistenceNone
Idle Timeout5 minutes
Connection ResetDisabled (recommended)

Step 5: Configure DNS​

Create DNS records that resolve the application and Rancher UI hostnames to the load balancer VIP.

Example:

HostnameTypeValue
automate.mycompany.orgALoad Balancer VIP
rancher.mycompany.orgALoad Balancer VIP

Step 6: Validate Connectivity​

Verify that the load balancer can communicate with all backend nodes and that health probes report them as healthy.

Confirm that:

  • All backend nodes are marked healthy by the load balancer.
  • Traffic is distributed across the configured backend pool.
  • The application is accessible using the configured hostname.
  • SSL/TLS certificates are presented correctly (if SSL termination is enabled).