sigs.k8s.io/gateway-api@v1.0.0/examples/standard/cross-namespace-routing/gateway.yaml (about)

     1  #$ Used in:
     2  #$ - site-src/guides/multiple-ns.md
     3  apiVersion: gateway.networking.k8s.io/v1beta1
     4  kind: Gateway
     5  metadata:
     6    name: shared-gateway
     7    namespace: infra-ns
     8  spec:
     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