@@ -168,9 +167,15 @@ button at the bottom of the editor.
> [Introduced](https://gitlab.com/groups/gitlab-org/-/epics/3438) and [enabled by default](https://gitlab.com/gitlab-org/gitlab/-/issues/287676) in [GitLab Ultimate](https://about.gitlab.com/pricing/) 13.9.
You can use policy alerts to track your policy's impact. There are two ways to enable policy alerts:
You can use policy alerts to track your policy's impact. Alerts are only available if you've
[installed](../../clusters/agent/repository.md)
and [configured](../../clusters/agent/index.md#create-an-agent-record-in-gitlab)
a Kubernetes Agent for this project.
There are two ways to create policy alerts:
- In the policy editor UI, by clicking **Add alert**.
- In the [policy editor UI](#container-network-policy-editor),
by clicking **Add alert**.
- With YAML, through the `metadata.annotations` property.
```yaml
...
...
@@ -181,12 +186,6 @@ You can use policy alerts to track your policy's impact. There are two ways to e
Once added, the UI updates and displays a warning about the dangers of too many alerts.
Alerts are only available if you've [installed](../../clusters/agent/repository.md)
and [configured](../../clusters/agent/index.md#create-an-agent-record-in-gitlab)