> 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-create-a-l7-policy.md).

# How to Create a L7 Policy?

To create a L7 Policy 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="/files/sNgrimTbZqcwCg07wHpP" alt=""><figcaption></figcaption></figure>

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

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

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

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

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

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

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

<figure><img src="/files/2WUR51fklY0b0T3h60F5" alt=""><figcaption></figcaption></figure>

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

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

**Step 7:** Go to the **L7 Policies** tab and click on **Create L7 Policy.**

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

**Step 8:** Enter the details and click on **Create L7 Policy**.

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

| Field       | Description                                                              |
| ----------- | ------------------------------------------------------------------------ |
| Name        | Enter the name for L7 Policy.                                            |
| Description | Enter the description for L7 Policy.                                     |
| Action\*    | Select Reject as the L7 policy action.                                   |
| Position    | Enter the position of this policy on the listener. Positions start at 1. |
