> For the complete documentation index, see [llms.txt](https://docs.cloudeka.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cloudeka.ai/guideline-for-enterprise/deka-slb/configuration-deka-slb.md).

# Configuration Deka SLB

After creating Deka SLB, continue by adding the backend and frontend configurations. On the tab **Deka SLB** page, click **Configuration**.

The **Deka SLB Configuration** page appears with three tabs: **General**, **Backend**, and **Frontend**.

This section explains the available configuration actions.

1. **Add Configuration** — follow the steps in [**Add Backend Configuration**](#add-backend-configuration) and [**Add Frontend Configuration**](#add-frontend-configuration).
2. **Edit Configuration** — follow the steps in [**Edit Backend Configuration**](#edit-backend-configuration) and [**Edit Frontend Configuration**](#edit-frontend-configuration).
3. **Delete Configuration** — follow the steps in [**Delete Configuration Backend/Frontend**](#delete-configuration-backend-frontend).

### **Add Backend Configuration**

Follow these steps to add a backend configuration in Deka SLB on the Service Portal Cloudeka:

* On the **Deka SLB** page, click **More** for the desired Deka SLB, then select **Configuration**.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2F2UDgtfGEs4Gj7sFgl1O2%2Fimage.png?alt=media&amp;token=107e1e37-a82e-4e2e-9397-a00f43c8491c" alt=""><figcaption></figcaption></figure>

* On the **Deka SLB Configuration** page, click the **Backend** tab, then click **Create Backend**.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2Fkxotj6ne6XJI39WZyMpC%2Fimage.png?alt=media&amp;token=1581fbae-4830-40a3-9228-c95df8f8faaf" alt=""><figcaption></figcaption></figure>

* On the **Create Backend** page, fill in the available form.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2FLTabPBdcCkHAw9h1hcwC%2Fimage.png?alt=media&amp;token=a41a22b0-8a97-426d-b52a-31b01652cfa1" alt=""><figcaption></figcaption></figure>

<table><thead><tr><th width="242">Column</th><th>Description</th></tr></thead><tbody><tr><td><strong>Name</strong></td><td>Enter a backend name using only A–Z, a–z, and underscore (_) characters</td></tr><tr><td><strong>Load Balancer Method</strong></td><td>There are three available methods: <strong>Roundrobin</strong>, <strong>Least Connection</strong>, and <strong>Source</strong>.</td></tr><tr><td><strong>Mode</strong></td><td><p>There are two available modes:</p><ol><li>HTTP</li><li>TCP</li></ol></td></tr></tbody></table>

If you select **HTTP** in the **Mode** field, the following fields will appear:

<table><thead><tr><th width="209">Column</th><th>Description</th></tr></thead><tbody><tr><td><strong>Advance Check</strong></td><td>If you select HTTP in the <strong>Mode</strong> field, select <strong>httpchk</strong>.</td></tr><tr><td><strong>Http Check Method</strong></td><td><p>There are two available options:</p><ol><li><strong>GET</strong> — sends a request to retrieve data from the server.</li><li><strong>POST</strong> — sends data to the server, usually to create a new resource.</li></ol></td></tr><tr><td><strong>Http Check URI</strong></td><td><p>Enter the URI used to check whether the backend server is active. The system automatically adds the initial slash (/).</p><p>For example, enter <code>index.html</code> to use <code>/index.html</code> as the HTTP Check URI.</p></td></tr></tbody></table>

If you choose **TCP** in the **Mode** field, the following field will appear.

<table><thead><tr><th width="231">Column</th><th>Description</th></tr></thead><tbody><tr><td><strong>Advance Check</strong></td><td><p>There are two available options:</p><ol><li><strong>SSL Hello Check</strong> — checks whether an SSL connection to the backend server can be established.</li><li><strong>TCP Check</strong> — checks the availability or health of the TCP connection.</li></ol></td></tr></tbody></table>

After selecting the protocol, go to the **Servers** section. You can add more than one server if the backend uses multiple VMs or instances. This allows the SLB to distribute traffic based on the selected load balancing method and health check settings.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2Fe8royQ8CUDvnNMEJGhSi%2Fimage.png?alt=media&amp;token=ecaf71f3-f27f-43a8-a14a-ec66651352a6" alt=""><figcaption></figcaption></figure>

<table><thead><tr><th width="245">Column</th><th>Description</th></tr></thead><tbody><tr><td><strong>Server Name</strong></td><td>Select a VM instance that has been deployed in the VPC connected to Deka SLB.</td></tr><tr><td><strong>Server Port</strong></td><td>Enter the port used by the server.</td></tr><tr><td><strong>Max Connection</strong></td><td>Enter the maximum number of connections that the server can accept.</td></tr><tr><td><strong>Weight</strong></td><td>Enter the server weight used to determine how traffic is distributed among backend servers.</td></tr></tbody></table>

* After filling out all the forms on the **Create Backend** page, click the **Create** button.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2FjUpfKdDy2MNOiFtir8n7%2Fimage.png?alt=media&amp;token=a32b53c7-40e4-48b0-b29e-0500bf7dcd58" alt=""><figcaption></figcaption></figure>

* A notification will appear: **Backend has been successfully created**.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2FpWC4y4G76Dhh6DHTmV3B%2Fimage.png?alt=media&amp;token=1099edff-284e-4014-b832-a099f6644ae3" alt=""><figcaption></figcaption></figure>

### **Add Frontend Configuration**

After configuring the backend, continue with the frontend configuration by following these steps:

* On the **Deka SLB** **Configuration** page, click the **Frontend** tab, then click **Create Frontend**.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2FtHlL8mxZaOHfesLdV9D6%2Fimage.png?alt=media&amp;token=a32b1d5f-95dc-44c4-acb7-d875407a8994" alt=""><figcaption></figcaption></figure>

* On the Create Frontend page, fill in the available fields.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2Ftxc61IzBNkLAnFusiGL1%2Fimage.png?alt=media&amp;token=86b630ea-9d29-4c22-b3a3-e42a5d44c0e9" alt=""><figcaption></figcaption></figure>

<table><thead><tr><th width="183">Column</th><th>Description</th></tr></thead><tbody><tr><td><strong>Name</strong></td><td>Enter a frontend configuration name using only A-Z, a-z, and the underscore character (<code>_</code>).</td></tr><tr><td><strong>Default Backend</strong></td><td>Select the backend configuration that was created earlier.</td></tr></tbody></table>

If you want to add another backend configuration, click **Add Backend**.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2FYCVDLpj4FJpBED1Mxz3a%2Fimage.png?alt=media&amp;token=e5b5c888-9ab8-402f-86df-7eca239dfb1f" alt=""><figcaption></figcaption></figure>

<table><thead><tr><th width="197">Column</th><th>Description</th></tr></thead><tbody><tr><td><strong>Backend Name</strong></td><td>Select the backend configuration to be added.</td></tr><tr><td><strong>ACL Name</strong></td><td>Defines a rule that controls access or behavior for specific traffic.<br>Enter the name of the access control list (ACL).</td></tr><tr><td><strong>Criteria</strong></td><td><p>Determines whether a request should be directed to a specific backend. There are three available options:</p><ol><li><strong>req.hdr(Host)</strong> — checks the value of the <strong>Host</strong> header in the HTTP request.</li><li><strong>path_beg</strong> — checks whether the request URL path starts with a specific value.</li><li><strong>path_end</strong> — checks whether the request URL path ends with a specific value.</li></ol></td></tr><tr><td><strong>Value</strong></td><td><p>This value depends on the selected criteria.</p><ol><li><strong>req.hdr(Host)</strong> — for example, <code>www.example.com</code></li><li><strong>path_beg</strong> — for a path starting with <code>/</code>, for example <code>/example.php</code></li><li><strong>path_end</strong> — for a path ending with a file extension, for example <code>.php</code></li></ol></td></tr><tr><td><strong>Condition</strong></td><td><p>There are two available options:</p><ol><li><strong>Equal</strong> — checks whether the value matches the ACL value.</li><li><strong>Not Equal</strong> — checks whether the value does not match the ACL value.</li></ol></td></tr><tr><td><strong>Action</strong></td><td>Use the <strong>Delete</strong> button to remove an added backend configuration.</td></tr></tbody></table>

After selecting the backend configuration, complete the remaining fields.

<table><thead><tr><th width="147">Column</th><th>Description</th></tr></thead><tbody><tr><td><strong>Bind Address</strong></td><td><p>There are two available options:</p><ol><li>Internal</li><li>Internet</li></ol></td></tr><tr><td><strong>Mode</strong></td><td><p>There are three available options:</p><ol><li>HTTPS</li><li>HTTP</li><li>TCP</li></ol></td></tr><tr><td><strong>Bind Port</strong></td><td>Enter the port to be used by the frontend.</td></tr></tbody></table>

If you select **HTTPS** in the **Mode** field, the following fields will appear:

<table><thead><tr><th width="167">Column</th><th>Description</th></tr></thead><tbody><tr><td><strong>Certificate File</strong></td><td>Upload the certificate file. If using Service Portal Cloudeka, specifically Deka SSL, download the certificate file from the SSL menu under the Manage module.</td></tr><tr><td><strong>Key File</strong></td><td>Upload the key file. If using Service Portal Cloudeka, specifically Deka SSL, download the key file from the SSL menu under the Manage module.</td></tr></tbody></table>

* After filling out all fields on the **Create Frontend** page, click **Create**.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2Ffyar8jmJa2BPGhzVpx5v%2Fimage.png?alt=media&amp;token=9f99f26a-401d-47df-b3ba-adbc176749e8" alt=""><figcaption></figcaption></figure>

* If the frontend is created successfully, a notification will appear: **Frontend has been successfully created.**

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2Fp1QF5G1NAFJ2qDbFEq5r%2Fimage.png?alt=media&amp;token=cc1b6e4d-976c-4ab1-81c7-37c7ca6c370e" alt=""><figcaption></figcaption></figure>

### **Edit Backend Configuration**

You can modify an existing backend configuration by following these steps:

* On the **Backend** tab of the **Deka SLB Configuration** page, select the backend configuration you want to update, then click **Edit**.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2F0AZ9D3Pq40XBODru4sAQ%2Fimage.png?alt=media&amp;token=20437b9d-5d4d-473e-9157-a709cbe3dfcf" alt=""><figcaption></figcaption></figure>

* On the **Edit Backend** page, you can update the **Load Balance Method**, **Advance Check**, **Http Check Method**, and  **Http Check URI**, and  To add another server, click **Add Server.** After making the changes, click **Edit.**

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2Fpd077Bg79Q7tvshqBT5s%2Fimage.png?alt=media&amp;token=cd3e71b1-1824-4334-b4b3-8464e629f05b" alt=""><figcaption></figcaption></figure>

* A notification will appear: **Backend has been successfully updated.**

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2FnpXJo3wmB9qTKjN2wYTQ%2Fimage.png?alt=media&amp;token=b9bc508c-a925-4f83-9323-65e16041673e" alt=""><figcaption></figcaption></figure>

### **Edit Frontend Configuration**

Follow these steps to modify an existing frontend configuration:

* On the **Frontend** tab of the **Deka SLB** **Configuration** page, select the frontend configuration you want to update, then click **Edit**.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2Frp7uHa4vA5L404KONN6R%2Fimage.png?alt=media&amp;token=24ba8c36-ff2b-4867-b5f7-b1b1c7885e03" alt=""><figcaption></figcaption></figure>

* On the **Edit Frontend** page, you can update the **Default Backend**, **Additional Backend**, **Bind Address**, and **Bind Port**. If you want to add another backend, click **Add Backend**. After making the changes, click **Edit**.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2FVyGWFbR8lqtytbqonHr6%2Fimage.png?alt=media&amp;token=5982fc23-c1a7-40cb-91fa-ae8f043a842b" alt=""><figcaption></figcaption></figure>

* A notification will appear: **Frontend has been successfully updated**.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2F5YZDtBVM4ra8nsUulbEc%2Fimage.png?alt=media&amp;token=c224ba8e-1593-4e1b-ae1b-1800cbb885d5" alt=""><figcaption></figcaption></figure>

### **Delete Configuration Backend/Frontend**

To delete Backend and Frontend configurations in Deka SLB, delete the frontend configuration first, then delete the backend configuration. On the **Deka SLB** **Configuration** page, open the **Frontend** tab, then click **Delete**.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2FbLuVVhIVr3E6nFVKdYEE%2Fimage.png?alt=media&amp;token=81d20aaa-b289-4970-9b68-88a6dbb5a509" alt=""><figcaption></figcaption></figure>

The **Delete Frontend** window appears. Enter the frontend configuration name, then click "**I understand the consequences, delete this Frontend**" to continue.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2FTQIwj8WaH25fV4aWWhv8%2Fimage.png?alt=media&amp;token=b3114cdd-163c-4f23-b8aa-50217bf863f4" alt=""><figcaption></figcaption></figure>

Wait until the process is complete and the notification **Frontend has been successfully deleted** appears.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2Fafz24ZEMFRBni7c8bgms%2Fimage.png?alt=media&amp;token=2b41b5ab-6772-4926-ae49-78710d7d75a7" alt=""><figcaption></figcaption></figure>

After the frontend configuration is deleted, continue by deleting the backend configuration. If the frontend configuration has not been deleted yet, a notification will appear: **Please detach default backend from frontend configuration!** On the **Backend** tab, click **Delete**.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2FRhTX6L3h3GsLM5qzt2aQ%2Fimage.png?alt=media&amp;token=22b9f221-7d7c-45e3-a60d-6b69fffc4022" alt=""><figcaption></figcaption></figure>

The **Delete Backend** window appears. Enter the backend configuration name, then click the “**I understand the consequences, delete this Backend**” button to continue.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2Fo9gXZg3nUEIRQS5zT4t7%2Fimage.png?alt=media&amp;token=93b8801d-aff3-4ced-a2f1-830b3477b714" alt=""><figcaption></figcaption></figure>

Wait until the process is complete, and a notification will appear: **Backend has been successfully deleted!**

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2FpwSnjHqcc1PiiZ12yTCE%2Fimage.png?alt=media&amp;token=6427c69c-26c7-4bae-9f79-016deb87091f" alt=""><figcaption></figcaption></figure>
