# How to Create a Pool in Kubernetes Load Balancer?

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

**Step 1:** [Login](https://customer.acecloudhosting.com/index.php?m=ace_product_register_addon\&action=login) to your account.&#x20;

<figure><img src="https://611918185-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZE65sl2QJgZthXIMR4N7%2Fuploads%2FVwpkFkTpZHpAXXn6yHTF%2Fimage.png?alt=media&#x26;token=cb9fd43c-36e8-4f03-a31a-17326ba54431" alt=""><figcaption></figcaption></figure>

**Step 2:** Navigate to **Services** and then click on **My Services.**

<figure><img src="https://611918185-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZE65sl2QJgZthXIMR4N7%2Fuploads%2F4j2TZuD27bHQ4YUt8Xut%2Fimage.png?alt=media&#x26;token=895b68a1-9bad-4bc2-a3a7-a5d094c5b65b" alt=""><figcaption></figcaption></figure>

**Step 3:** Click on your project.

<figure><img src="https://611918185-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZE65sl2QJgZthXIMR4N7%2Fuploads%2FssfjcSQKoiNqjIIIFiQ2%2Fimage.png?alt=media&#x26;token=94ae31c9-e790-45c8-97c7-b27ebb1e2277" alt=""><figcaption></figcaption></figure>

**Step 4:** Navigate to **Kubernetes** and then click on **K8s Load Balancer**.

<figure><img src="https://611918185-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZE65sl2QJgZthXIMR4N7%2Fuploads%2Fg78jbwIhhrjzGX0K7uwm%2Fimage.png?alt=media&#x26;token=969c4ff9-1398-4638-a665-196472633bc4" alt=""><figcaption></figcaption></figure>

**Step 5:** Click on the load balancer name for which you want to create a pool.

<figure><img src="https://611918185-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZE65sl2QJgZthXIMR4N7%2Fuploads%2FtP7uaQbEaIdVaQzuD7vq%2Fimage.png?alt=media&#x26;token=7759ad63-285e-4286-8acb-9a4698a6c347" alt=""><figcaption></figcaption></figure>

**Step 6:** Go to **Listener** tab and click on the listener's name for which you want to create the pool.

<figure><img src="https://611918185-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZE65sl2QJgZthXIMR4N7%2Fuploads%2FVmtw22ke6aJcsi6tQvbe%2Fimage.png?alt=media&#x26;token=4c0c2f15-c72c-42f7-9fc1-ab15bd3fd44e" alt=""><figcaption></figcaption></figure>

**Step 7:** Click on the **Pools** tab and click on **Create Pool**.

<figure><img src="https://611918185-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZE65sl2QJgZthXIMR4N7%2Fuploads%2FeSrMVXknDLPYaj5QUwur%2Fimage.png?alt=media&#x26;token=3f668113-9e9f-476c-b532-640a42bf2ab2" alt=""><figcaption></figcaption></figure>

**Step 8:** Enter **Pool Details** and click **Next.**

<figure><img src="https://611918185-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZE65sl2QJgZthXIMR4N7%2Fuploads%2FoKdSBNXjCyGoI6JLG3ND%2Fimage.png?alt=media&#x26;token=9ad8eafb-8110-4833-81fa-f89ab72a49e9" 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 9:** Click on **Add** against the instance, you want to allocate as a member.

<figure><img src="https://611918185-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZE65sl2QJgZthXIMR4N7%2Fuploads%2F1bR21uBFbALfjD6W2tAs%2Fimage.png?alt=media&#x26;token=2103d149-c6f1-4df9-87b5-da0049fb9529" alt=""><figcaption></figcaption></figure>

**Step 10:** Click on edit icon to enter the port number.

<figure><img src="https://611918185-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZE65sl2QJgZthXIMR4N7%2Fuploads%2FHC3BU1DXHbCbTENy6Vq9%2Fimage.png?alt=media&#x26;token=4557029c-6e29-4101-9e4c-abeb75ee6400" alt=""><figcaption></figcaption></figure>

**Step 11:** Enter the **Port** number, click on save icon and press the **Next** button.

<figure><img src="https://611918185-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZE65sl2QJgZthXIMR4N7%2Fuploads%2FKDCy7wuwCwAj6L4oxlyw%2Fimage.png?alt=media&#x26;token=5b250f97-1c80-49a5-abce-6271c784b8f4" alt=""><figcaption></figcaption></figure>

**Step 12:** Enter **Health Monitor** details and click **Create Pool.**

**Note:** If you do not want to create **Monitor,** select **No** and click **Create Pool.**

<figure><img src="https://611918185-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZE65sl2QJgZthXIMR4N7%2Fuploads%2Fk0GCmjhSFeiBEFwUjHmo%2Fimage.png?alt=media&#x26;token=76c7890a-eac6-4a39-be7b-ce7204f65078" 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 /.                                                                        |
