Add note on Gateway API Manual Deployment and Policy Attachment (#15701)

Users will have to add this label for Policy Attachment to work
properly.
This commit is contained in:
Daniel Grimm 2024-11-07 09:30:26 +01:00 committed by GitHub
parent bec1c82394
commit e54d92c45a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -289,6 +289,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 >}}