> 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-edit-a-l7-rule.md).

# How to Edit a L7 Rule?

To edit a L7 rule 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%2F0yusdEBnMrZwd60emzwO%2Fimage.png?alt=media&amp;token=a7010b92-2ff9-4ec5-a0c9-987c94154eeb" 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%2FFQk8KVGuloJNbkzmvzYa%2Fimage.png?alt=media&amp;token=4171ee24-7b6d-4ee2-8c82-1900cbdeea31" 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%2FqsYwtSS7zFYBKzs0ex0n%2Fimage.png?alt=media&amp;token=fead9837-147d-4f17-a1c6-c693849f6f0b" 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&amp;token=969c4ff9-1398-4638-a665-196472633bc4" alt=""><figcaption></figcaption></figure>

**Step 5:** Click on the load balancer name for which you want to edit a L7 rule.

<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&amp;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 edit a L7 rule.

<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&amp;token=4c0c2f15-c72c-42f7-9fc1-ab15bd3fd44e" alt=""><figcaption></figcaption></figure>

**Step 7:** Go to the **L7 Policies** tab and click on policy name for which you want to edit a L7 rule.

<figure><img src="https://611918185-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZE65sl2QJgZthXIMR4N7%2Fuploads%2FcempWXu2rj6yTni8cUJd%2Fimage.png?alt=media&amp;token=3059feba-53c0-4feb-86a0-aa97e8ecc447" alt=""><figcaption></figcaption></figure>

**Step 8:** Got to **L7Rules** tab and click on three dots against the L7 rule which you want to edit.

<figure><img src="https://611918185-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZE65sl2QJgZthXIMR4N7%2Fuploads%2FxWTKxwFgNOIIowE8C1hD%2Fimage.png?alt=media&amp;token=6b27f591-a44a-4d8e-9fd2-795af2b08799" alt=""><figcaption></figcaption></figure>

**Step 9:** Click on **Edit Rule.**

<figure><img src="https://611918185-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZE65sl2QJgZthXIMR4N7%2Fuploads%2FuJoDswpuMpPgY4IFcf84%2Fimage.png?alt=media&amp;token=98dad883-4855-4589-9888-0c603996b799" alt=""><figcaption></figcaption></figure>

**Step 10:** Update the details and click on **Submit.**

<figure><img src="https://611918185-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZE65sl2QJgZthXIMR4N7%2Fuploads%2FERahQa8YTQ7Rd5Hf03tx%2Fimage.png?alt=media&amp;token=31b3ca58-2356-4511-a1b6-0a8213694ab6" alt=""><figcaption></figcaption></figure>

| Field          | Description                                                                                                                                                     |
| -------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Invert         | Select **Yes,** if you want the logic of the rule to be inverted or select **No**, if you want the logic of the rule to be same as set.                         |
| Type\*         | <p>Select the L7 rule type from the below mention option:<br>1. HOST\_NAME<br>2. PATH<br>3. FILE\_TYPE<br>4. HEADER<br>5. COOKIE</p>                            |
| Compare Type\* | <p>Select the comparison type for the L7 rule from the below mention option:<br>1. REGEX<br>2. EQUAL\_TO<br>3. STARTS\_WITH<br>4. ENDS\_WITH<br>5. CONTAINS</p> |
| Value          | Enter the value to use for the comparison.                                                                                                                      |
