istio.io/istio@v0.0.0-20240520182934-d79c90f27776/samples/helloworld/gateway-api/helloworld-gateway.yaml (about)

     1  apiVersion: gateway.networking.k8s.io/v1beta1
     2  kind: Gateway
     3  metadata:
     4    name: helloworld-gateway
     5  spec:
     6    gatewayClassName: istio
     7    listeners:
     8    - name: http
     9      port: 80
    10      protocol: HTTP
    11      allowedRoutes:
    12        namespaces:
    13          from: Same
    14  ---
    15  apiVersion: gateway.networking.k8s.io/v1beta1
    16  kind: HTTPRoute
    17  metadata:
    18    name: helloworld
    19  spec:
    20    parentRefs:
    21    - name: helloworld-gateway
    22    rules:
    23    - matches:
    24      - path:
    25          type: Exact
    26          value: /hello
    27      backendRefs:
    28      - name: helloworld
    29        port: 5000