sigs.k8s.io/gateway-api@v1.0.0/examples/standard/multicluster/httproute-referencegrant.yaml (about)

     1  #$ Used in:
     2  #$ - geps/gep-1748.md
     3  kind: HTTPRoute
     4  apiVersion: gateway.networking.k8s.io/v1beta1
     5  metadata:
     6    name: foo
     7    namespace: foo
     8  spec:
     9    rules:
    10    - matches:
    11      - path:
    12          type: PathPrefix
    13          value: /bar
    14      backendRefs:
    15      - group: multicluster.x-k8s.io
    16        kind: ServiceImport
    17        name: bar
    18        namespace: bar
    19  ---
    20  kind: ReferenceGrant
    21  apiVersion: gateway.networking.k8s.io/v1beta1
    22  metadata:
    23    name: bar
    24    namespace: bar
    25  spec:
    26    from:
    27    - group: gateway.networking.k8s.io
    28      kind: HTTPRoute
    29      namespace: foo
    30    to:
    31    - group: multicluster.x-k8s.io
    32      kind: ServiceImport