fix referencegrant
This commit is contained in:
@@ -2,11 +2,12 @@
|
|||||||
# ReferenceGrant — allow HTTPRoutes from any namespace to attach to the Gateway
|
# ReferenceGrant — allow HTTPRoutes from any namespace to attach to the Gateway
|
||||||
#
|
#
|
||||||
# Required by Gateway API spec when parentRef crosses namespace boundaries.
|
# Required by Gateway API spec when parentRef crosses namespace boundaries.
|
||||||
# Without this, HTTPRoutes in app namespaces (monitoring, gitea, etc.) cannot
|
# `namespace` is required in the from stanza — use a specific namespace or
|
||||||
# attach to the Gateway in the gateway namespace.
|
# create one ReferenceGrant per namespace that needs access.
|
||||||
#
|
#
|
||||||
# Note: omitting `namespace` in the `from` stanza means all namespaces are
|
# For a homelab cluster where all namespaces are trusted, we create a single
|
||||||
# permitted. Add explicit namespace entries to restrict if needed later.
|
# catch-all by listing the namespaces we expect to use. Add entries as new
|
||||||
|
# app namespaces are created.
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
apiVersion: gateway.networking.k8s.io/v1beta1
|
apiVersion: gateway.networking.k8s.io/v1beta1
|
||||||
kind: ReferenceGrant
|
kind: ReferenceGrant
|
||||||
@@ -17,6 +18,19 @@ spec:
|
|||||||
from:
|
from:
|
||||||
- group: gateway.networking.k8s.io
|
- group: gateway.networking.k8s.io
|
||||||
kind: HTTPRoute
|
kind: HTTPRoute
|
||||||
|
namespace: default
|
||||||
|
- group: gateway.networking.k8s.io
|
||||||
|
kind: HTTPRoute
|
||||||
|
namespace: monitoring
|
||||||
|
- group: gateway.networking.k8s.io
|
||||||
|
kind: HTTPRoute
|
||||||
|
namespace: argocd
|
||||||
|
- group: gateway.networking.k8s.io
|
||||||
|
kind: HTTPRoute
|
||||||
|
namespace: authentik
|
||||||
|
- group: gateway.networking.k8s.io
|
||||||
|
kind: HTTPRoute
|
||||||
|
namespace: gitea
|
||||||
to:
|
to:
|
||||||
- group: gateway.networking.k8s.io
|
- group: gateway.networking.k8s.io
|
||||||
kind: Gateway
|
kind: Gateway
|
||||||
|
|||||||
Reference in New Issue
Block a user