How to Create a Listener in Kubernetes Load Balancer?
Last updated
Last updated
To create a listener in Kubernetes load balancer, follow the steps given below:
Step 1: Login to your account.
Step 2: Navigate to Services and then click on My Services.
Step 3: Click on your project.
Step 4: Navigate to Kubernetes and then click on K8s Load Balancer.
Step 5: Click on the load balancer name for which you want to create a listener.
Step 6: Go to Listener tab and click on Create Listener.
Step 7: 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:
|
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. |
Insert Headers | Select the headers to insert into the request before it is sent to the member from the below option:
|
Step 8: Enter Pool Details and click Next.
Note: If you do not want to create Pool and Monitor, select No 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:
|
TLS Enabled |
|
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:
|
Cookie Name* | Enter the name of the cookie to use for session persistence. |
Step 9: Click on Add against the instance, you want to allocate as a member.
Step 10: Click on edit icon to enter the port number.
Step 11: Enter the Port number, click on save icon and press the Next button.
Step 12: Enter Health Monitor details and click Create Listener.
Note: If you do not want to create Monitor, select No and click Create Listener.
Field | Description |
Name* | Enter the name of the Health Monitor. |
Type* | Select a protocol for the health monitor from the below options:
|
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:
|
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 /. |