Skip to content

Commit 07db7e4

Browse files
committed
Move and elaborate on enable snippets statement
1 parent 45ce0a8 commit 07db7e4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

site/content/how-to/traffic-management/snippets-filters.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ before using Snippets. {{< /warning >}}
2626

2727
Snippets are configured using the `SnippetsFilter` API, but are disabled by default due to their complexity and security implications.
2828

29-
To use Snippets, set the `nginxGateway.snippetsFilters.enable` command line argument to true.
30-
3129
Snippets have the following disadvantages:
3230

3331
- _Complexity_. Snippets require you to:
@@ -43,7 +41,11 @@ Snippets have the following disadvantages:
4341

4442
## Setup
4543

46-
- [Install]({{< relref "/installation/" >}}) NGINX Gateway Fabric.
44+
- To enable Snippets, [install]({{< relref "/installation/" >}}) NGINX Gateway Fabric with these modifications:
45+
- Using Helm: set the `nginxGateway.snippetsFilters.enable` command line argument to true.
46+
- Using Kubernetes manifests: set the `--snippets-filters` flag in the nginx-gateway container argument, add `snippetsfilters` to the RBAC
47+
rules with verbs `list` and `watch`, and add `snippetsfilters/status` to the RBAC rules with verb `update`. See this [example manifest](https://raw.githubusercontent.com/nginxinc/nginx-gateway-fabric/main/deploy/snippets-filters/deploy.yaml) for clarification.
48+
4749
- Save the public IP address and port of NGINX Gateway Fabric into shell variables:
4850

4951
```text

0 commit comments

Comments
 (0)