# 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. |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.acecloud.ai/knowledge-base/kubernetes/how-to-create-a-l7-policy.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
