Browse Source

Update website/content/docs/api-gateway/configuration/gateway.mdx

Co-authored-by: trujillo-adam <47586768+trujillo-adam@users.noreply.github.com>
pull/14288/head
Nathan Coleman 2 years ago committed by GitHub
parent
commit
c1be820d85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      website/content/docs/api-gateway/configuration/gateway.mdx

4
website/content/docs/api-gateway/configuration/gateway.mdx

@ -185,9 +185,9 @@ tls:
#### Example cross-namespace certificateRef
The following example creates a `Gateway` named `example-gateway` in namespace `gateway-namespace` (lines 2-4). The gateway has a `certificateRef` in namespace `secret-namespace` (lines 16-18). The reference is allowed because the `ReferenceGrant` configuration, named `reference-grant` in namespace `secret-namespace` (lines 23-26), allows `Gateways` in `gateway-namespace` to reference `Secrets` in `secret-namespace` (lines 30-35).
The following example creates a `Gateway` named `example-gateway` in namespace `gateway-namespace` (lines 2-4). The gateway has a `certificateRef` in namespace `secret-namespace` (lines 16-18). The reference is allowed because the `ReferenceGrant` configuration, named `reference-grant` in namespace `secret-namespace` (lines 24-27), allows `Gateways` in `gateway-namespace` to reference `Secrets` in `secret-namespace` (lines 31-35).
<CodeBlockConfig filename="gateway_with_referencegrant.yaml" lineNumbers highlight="2-4,16-18,23-26,30-35">
<CodeBlockConfig filename="gateway_with_referencegrant.yaml" lineNumbers highlight="2-4,16-18,24-27,31-35">
```yaml
apiVersion: gateway.networking.k8s.io/v1beta1

Loading…
Cancel
Save