> 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-k8s-load-balancer.md).

# How to Manage K8s Load Balancer?

### a. How to View the List of Kubernetes Load Balancers?

To view the list of Kubernetes load balancers, 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="https://611918185-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZE65sl2QJgZthXIMR4N7%2Fuploads%2F1G3Z4NDR3REyiCGhnqS8%2Fimage.png?alt=media&amp;token=0021b169-4a84-4e05-a8bf-b1e3716a4765" alt=""><figcaption></figcaption></figure>

**Step 3:** Here, you can view all your K8s Load Balancers.

<figure><img src="https://611918185-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZE65sl2QJgZthXIMR4N7%2Fuploads%2FlJGfw0pC0yaVVyCGFWyo%2Fimage.png?alt=media&amp;token=01372a86-45cc-4d61-952a-41f468556fe8" alt=""><figcaption></figcaption></figure>

### b. How to Create a Kubernetes Load Balancer?

To create a Kubernetes load balancer, follow the steps given below:

**Step 1:** Click **Create Load Balancer**.

<figure><img src="https://611918185-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZE65sl2QJgZthXIMR4N7%2Fuploads%2FK1vUtCam5Jc2deYCK5kr%2Fimage.png?alt=media&amp;token=4fc503ec-3f1f-41f9-8483-8318788e8c0d" alt=""><figcaption></figcaption></figure>

**Step 2:** Enter the **Name** and **Description** for the Load Balancer and click **Next**.

<figure><img src="https://611918185-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZE65sl2QJgZthXIMR4N7%2Fuploads%2FfPeH6spXOhRRAejUvn3y%2Fimage.png?alt=media&amp;token=ae0c3aa5-01c2-4ee8-b8c2-fa224c2abe27" alt=""><figcaption></figcaption></figure>

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

***Note:***&#x20;

1. *If you do not want to configure a listener, disable the **Listener Details toggle**, then click **Next**.*
2. *If you do not create **a listener**, you will not be able to create **a pool** and **Monitor.***

<figure><img src="https://611918185-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZE65sl2QJgZthXIMR4N7%2Fuploads%2FsCrt6QRjHVoFIsfm6DHp%2Fimage.png?alt=media&amp;token=0c1f1717-6c77-4b28-88c1-20b226c75f2e" alt=""><figcaption></figcaption></figure>

| **Field**                  | **Description**                                                                                                                                                                                           |
| -------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Listener 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(in ms) | 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             | <p>Select the headers to insert into the request before it is sent to the member from the below option:</p><ol start="1"><li>X-Forwarded-For</li><li>X-Forwarded-Port</li><li>X-Forwarded-Proto</li></ol> |

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

<figure><img src="https://611918185-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZE65sl2QJgZthXIMR4N7%2Fuploads%2FXLycMr20rHIBE5U84uni%2Fimage.png?alt=media&amp;token=53346a82-cde4-4ea3-b7d2-7059ca3d031e" alt=""><figcaption></figcaption></figure>

| **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>              |
| 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 **Create Load Balancer.**

***Note:** If you do not want to create **a monitor,** disable the **Health Monitor Details toggle** and click **Next.***

<figure><img src="https://611918185-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZE65sl2QJgZthXIMR4N7%2Fuploads%2FS08AtDqTy9TsNVl23Nci%2Fimage.png?alt=media&amp;token=73e8e176-0afe-4bd6-954e-25a2a6e12b12" alt=""><figcaption></figcaption></figure>

| **Field**          | **Description**                                                                                                                                                                                                                                 |
| ------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Name\*             | Enter the name of the Health Monitor.                                                                                                                                                                                                           |
| Type\*             | <p>Select a protocol for the health monitor from the below options:</p><ol start="1"><li>HTTP</li><li>HTTPS</li><li>PING</li><li>TCP</li><li>TLS-HELLO</li><li>UDP-CONNECT</li><li>SCTP</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:** Configure the backend server details by selecting an existing server or manually specifying the server IP address. Then, provide the **Protocol Port**, **Monitor Address**, **Monitor Port**, and **Weight**, and click **Next**.

<figure><img src="https://611918185-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZE65sl2QJgZthXIMR4N7%2Fuploads%2FFtmSLfXeZ7NYt9AZ2eWX%2Fimage.png?alt=media&amp;token=fb13a207-3e3d-438a-b48e-822b67ca3b3f" alt=""><figcaption></figcaption></figure>

**Step 7**: Review the load balancer, listener, pool, health monitor, and backend server configurations. If all the details are correct, click **Create** to provision the load balancer.

<figure><img src="https://611918185-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZE65sl2QJgZthXIMR4N7%2Fuploads%2FpbpL60RlH4KDaqZUQkAQ%2Fimage.png?alt=media&amp;token=fabd664c-f967-4cfe-b6b9-ae02fac07496" alt=""><figcaption></figcaption></figure>

### c. How to delete a Kubernetes Load Balancer?

To delete a Kubernetes load balancer, follow the steps given below:

**Step 1:** From the list of load balancers, click the **three-dot (⋮) menu** corresponding to the load balancer you want to delete and choose **Delete Load Balancer**.

<figure><img src="https://611918185-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZE65sl2QJgZthXIMR4N7%2Fuploads%2FIpWW6M9dMNrkHJzvAshg%2Fimage.png?alt=media&amp;token=950bd59b-b2ea-4f77-8b89-26c8bd2743cd" alt=""><figcaption></figcaption></figure>

**Step 2:** Click **Delete** to complete the deletion.

<figure><img src="https://611918185-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZE65sl2QJgZthXIMR4N7%2Fuploads%2FsqiOCfSiG3CJzENXgD27%2Fimage.png?alt=media&amp;token=ad4ff587-40e8-490a-9fd9-45a36e80a6b4" alt=""><figcaption></figcaption></figure>

### d. How to View Kubernetes Load Balancer Overview?

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

<figure><img src="https://611918185-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZE65sl2QJgZthXIMR4N7%2Fuploads%2FPpgHSX940EONXRv3GimS%2Fimage.png?alt=media&amp;token=0bbfca44-79b4-4a36-acc9-874ad6443009" alt=""><figcaption></figcaption></figure>

**Step 2:** Here, you can view the overview.

<figure><img src="https://611918185-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZE65sl2QJgZthXIMR4N7%2Fuploads%2FzOGQQSMTQqj0kfms6gb7%2Fimage.png?alt=media&amp;token=4434b8f5-7a75-4a59-853a-0b8a509bfdf9" alt=""><figcaption></figcaption></figure>
