...

Text file src/sigs.k8s.io/gateway-api/examples/standard/cross-namespace-routing/gateway.yaml

Documentation: sigs.k8s.io/gateway-api/examples/standard/cross-namespace-routing

     1#$ Used in:
     2#$ - site-src/guides/multiple-ns.md
     3apiVersion: gateway.networking.k8s.io/v1beta1
     4kind: Gateway
     5metadata:
     6  name: shared-gateway
     7  namespace: infra-ns
     8spec:
     9  gatewayClassName: shared-gateway-class
    10  listeners:
    11  - name: https
    12    hostname: "foo.example.com"
    13    protocol: HTTPS
    14    port: 443
    15    allowedRoutes:
    16      namespaces:
    17        from: Selector
    18        selector:
    19          matchLabels:
    20            shared-gateway-access: "true"
    21    tls:
    22      certificateRefs:
    23      - name: foo-example-com

View as plain text