> For the complete documentation index, see [llms.txt](https://docs.acecloud.ai/knowledge-base/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.acecloud.ai/knowledge-base/kubernetes/how-to-manage-listeners-in-a-kubernetes-load-balancer.md).

# 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](https://customer.acecloud.ai/) to your account.

**Step 2:** Navigate to **Kubernetes,** choose **Dedicated,** and then click **K8s Load Balancer**.

<figure><img src="/files/NYWko0NRQyycCqdeQppg" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/BsLoyTBHX7a2nRlq1aGG" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/IiqFCItO9AIrXlYU7oOw" alt=""><figcaption></figcaption></figure>

### 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.

<figure><img src="/files/xmwaui8UzKUVuYYbbmxF" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/KsxmJ2W2eAf5pMMFN1Wi" alt=""><figcaption></figcaption></figure>

**Step 3:** Enter the **Listener Details** and click **Next.**

<figure><img src="/files/MUIT9FzYduKhCFptpMIy" alt=""><figcaption></figcaption></figure>

| **Field**              | **Description**                                                                                                                                      |
| ---------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
| Name                   | Enter the name of the Listener.                                                                                                                      |
| Description            | Enter the description of the Listener.                                                                                                               |
| Protocol               | <p>Select a protocol for the listener from the below options:</p><ol start="1"><li>HTTP</li><li>HTTPS</li><li>TCP</li><li>UDP</li><li>SCTP</li></ol> |
| 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.**

<figure><img src="/files/8S3mKBWORkCTSPqTWq6N" alt=""><figcaption></figcaption></figure>

***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           | <p>Select the load balancing algorithm for the pool from the below options:</p><ol start="1"><li>Least connections</li><li>Round robin</li><li>Source IP</li></ol>              |
| 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         | <ul><li>Select <strong>YES</strong> to enable TLS, enabling it will help member to use TLS encryption.</li><li>Select <strong>NO</strong> to disable TLS.</li></ul>             |
| TLS Cipher String   | Enter List of ciphers in OpenSSL format and it should be colon-separated.                                                                                                       |
| Session Persistence | <p>Select a JSON object specifying the session persistence for the pool from the below options:</p><ol start="1"><li>HTTP Cookie</li><li>APP Cookie</li><li>Source IP</li></ol> |
| Cookie Name\*       | Enter the name of the cookie to use for session persistence.                                                                                                                    |

**Step 5:** Enter the **Health Monitor details, then** click **Next.**

<figure><img src="/files/wwVJ6dcWiNZVHl6VBfQr" alt=""><figcaption></figcaption></figure>

***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\* | <p>Select a protocol for the health monitor from the options below:</p><ol start="1"><li>HTTP</li><li>HTTPS</li><li>PING</li><li>TCP</li><li>TLS-HELLO</li></ol>                                                                                |
| 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               | <p>Select the HTTP method that the health monitor uses for requests from the below options:</p><ol start="1"><li>GET</li><li>HEAD</li><li>POST</li><li>PUT</li><li>DELETE</li><li>TRACE</li><li>OPTIONS</li><li>PATCH</li><li>CONNECT</li></ol> |
| 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**.

<figure><img src="/files/o1Lg7ucW1TNdcWSbIO6b" alt=""><figcaption></figcaption></figure>

***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**.

<figure><img src="/files/YJpNU4gGgWpIbDQuX3yE" alt=""><figcaption></figcaption></figure>

### 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.

<figure><img src="/files/mdKNtii66ptGH3qyWHwI" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/BVWg2JtayNXPAkY7aOCW" alt=""><figcaption></figcaption></figure>

**Step 3:** Update the details and click **Submit**.

<figure><img src="/files/SkYvAWKmdjknCI0S63qT" alt=""><figcaption></figcaption></figure>
