Skip to content

Commit

Permalink
Add note on Gateway API Manual Deployment and Policy Attachment
Browse files Browse the repository at this point in the history
Users will have to add this label for Policy Attachment to work
properly.
  • Loading branch information
dgn committed Sep 17, 2024
1 parent 02e7b46 commit 6fc17db
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,8 @@ If you do not want to have an automated deployment, a `Deployment` and `Service`

When this option is done, you will need to manually link the `Gateway` to the `Service`, as well as keep their port configuration in sync.

In order to support Policy Attachment, e.g. when you're using the [targetRef](docs/reference/config/type/workload-selector/#PolicyTargetReference) field on an AuthorizationPolicy, you will also need to reference the name of your `Gateway` by adding the following label to your gateway pod: `gateway.networking.k8s.io/gateway-name: <gateway name>`.

To link a `Gateway` to a `Service`, configure the `addresses` field to point to a **single** `Hostname`.

{{< text yaml >}}
Expand Down

0 comments on commit 6fc17db

Please sign in to comment.