sigs.k8s.io/gateway-api@v1.0.0/examples/standard/http-route-attachment/gateway-strict.yaml (about)

     1  #$ Used in:
     2  #$ - site-src/concepts/api-overview.md
     3  apiVersion: gateway.networking.k8s.io/v1beta1
     4  kind: Gateway
     5  metadata:
     6    name: foo-gateway
     7    namespace: gateway-api-example-ns1
     8  spec:
     9    gatewayClassName: foo-lb
    10    listeners:
    11    - name: prod-web
    12      port: 80
    13      protocol: HTTP
    14      allowedRoutes:
    15        kinds:
    16        - kind: HTTPRoute
    17        namespaces:
    18          from: Selector
    19          selector:
    20            matchLabels:
    21              # This label is added automatically as of K8s 1.22
    22              # to all namespaces
    23              kubernetes.io/metadata.name: gateway-api-example-ns2