> 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="https://611918185-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZE65sl2QJgZthXIMR4N7%2Fuploads%2Frns0gO0Jcq2eAILR241N%2Fimage.png?alt=media&amp;token=228d5aa7-5e3d-412f-85b4-93b22c1dd28f" 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%2Fmbe0DtNMI3swOQuoNTGx%2Fimage.png?alt=media&amp;token=5dafd97d-d82c-4d1d-96dc-a41b4b4e43a0" 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%2FcSCcK2S4YdwJozsNfQrz%2Fimage.png?alt=media&amp;token=3e31662d-8b09-4586-90ad-ad1d1c8e6222" 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 create L7 Policy.

<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 create L7 Policy.

<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 **Create L7 Policy.**

<figure><img src="https://611918185-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZE65sl2QJgZthXIMR4N7%2Fuploads%2FTruU522RHxdq9qsBG2vZ%2Fimage.png?alt=media&amp;token=9a2bcd31-0d56-44d9-873a-121948d9c0b7" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://611918185-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZE65sl2QJgZthXIMR4N7%2Fuploads%2FxdeBLIat9KeIseE4BMlI%2Fimage.png?alt=media&amp;token=6c74d44a-9544-4a72-a894-3b6f5c451e29" 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. |
