How to Manage Listeners in a Kubernetes Load Balancer?
a. How to View all Listeners of a Kubernetes Load Balancer?
To view all listeners of the Kubernetes load balancer, follow the steps given below:
Step 1: Login to your account.
Step 2: Navigate to Kubernetes, choose Dedicated, and then click K8s Load Balancer.

Step 3: Click on the load balancer name for which you want to view the listeners.

Step 4: Go to the Listener tab, and here you can view all listeners.

b. How to Create a Listener in Kubernetes Load Balancer?
Step 1: Click on the load balancer name for which you want to create a listener.

Step 2: Go to the Listener tab and click on Create Listener.

Step 3: Enter the Listener Details and click Next.

Field
Description
Name
Enter the name of the Listener.
Description
Enter the description of the Listener.
Protocol
Select a protocol for the listener from the below options:
HTTP
HTTPS
TCP
UDP
SCTP
Port*
The protocol port number for the resource.
Client Data Timeout
Enter client inactivity timeout in milliseconds. The default is 50000.
TCP Inspect Timeout
Enter time, in milliseconds, to wait for additional TCP packets for content inspection. The default is 0.
Member Connect Timeout
Enter member connection timeout in milliseconds. The default is 5000.
Member Data Timeout
Enter member inactivity timeout in milliseconds. The default is 50000.
Allowed CIDRs
Enter a list of IPv4, IPv6 or mix of both CIDRs.
Connection Limit*
The maximum number of connections permitted for this listener. Default value is -1 which represents infinite connections.
Step 4: Enter Pool Details and click Next.

Note: If you do not want to create a Pool and Monitor, disable the Pool Details toggle and click Create Listener.
Field
Description
Name
Enter the name of the Pool.
Description
Enter the description of the pool.
Algorithm
Select the load balancing algorithm for the pool from the below options:
Least connections
Round robin
Source IP
Protocol
The protocol for which this pool and its members listen. A valid value is HTTP, HTTPS, PROXY, PROXYV2, TCP, UDP or SCTP.
TLS Enabled
Select YES to enable TLS, enabling it will help member to use TLS encryption.
Select NO to disable TLS.
TLS Cipher String
Enter List of ciphers in OpenSSL format and it should be colon-separated.
Session Persistence
Select a JSON object specifying the session persistence for the pool from the below options:
HTTP Cookie
APP Cookie
Source IP
Cookie Name*
Enter the name of the cookie to use for session persistence.
Step 5: Enter the Health Monitor details, then click Next.

Note: If you do not want to create a Monitor, disable the Health Monitor Details toggle.
Field
Description
Name*
Enter the name of the Health Monitor
Health Monitor Protocol*
Select a protocol for the health monitor from the options below:
HTTP
HTTPS
PING
TCP
TLS-HELLO
Max Retries Down*
Enter the number of allowed check failures before changing the operating status of the member to ERROR. A valid value is from 1 to 10. The default is 3.
Delay (sec)*
Enter the interval, in seconds, between health checks. The default is 10.
Max Retries*
Enter the number of successful checks before changing the operating status of the member to ONLINE. The default is 1.
Timeout (sec)*
The time, in seconds, after which a health check times out. The default is 5.
HTTP Method
Select the HTTP method that the health monitor uses for requests from the below options:
GET
HEAD
POST
PUT
DELETE
TRACE
OPTIONS
PATCH
CONNECT
Expected Codes*
Enter the HTTP status codes expected in response from the member to declare it healthy. The default is 200.
URL Path*
Enter the HTTP URL path of the request sent by the monitor to test the health of a member. Must be a string that begins with a forward slash. The default URL path is /.
Step 6: Turn on the Backend Server Details toggle.
Enable the Backend Server Details toggle to add backend servers that will receive traffic from the load balancer.
Choose one of the following methods to add backend servers:
Select from Existing Servers – Select a server from the configured server list.
Specify IP Address Manually – Enter the backend server IP address and port details manually.
Select the backend server, then configure the Protocol Port, Monitor Address, Monitor Port, and Weight. Once the backend server is added, click Next.

Note: Ensure the backend server has an active service running on the configured monitor port. Otherwise, the load balancer health check may fail.
Step 7: Review the listener configuration and click Submit.

c. How to Edit a Listener in Kubernetes Load Balancer?
Step 1: Click on the load balancer name for which you want to edit a listener.

Step 2: Go to the Listener tab and click on the three dots against the listener and choose Edit Listener.

Step 3: Update the details and click Submit.

Last updated