istio.io/istio@v0.0.0-20240520182934-d79c90f27776/samples/bookinfo/gateway-api/bookinfo-gateway.yaml (about) 1 apiVersion: gateway.networking.k8s.io/v1beta1 2 kind: Gateway 3 metadata: 4 name: bookinfo-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: bookinfo 19 spec: 20 parentRefs: 21 - name: bookinfo-gateway 22 rules: 23 - matches: 24 - path: 25 type: Exact 26 value: /productpage 27 - path: 28 type: PathPrefix 29 value: /static 30 - path: 31 type: Exact 32 value: /login 33 - path: 34 type: Exact 35 value: /logout 36 - path: 37 type: PathPrefix 38 value: /api/v1/products 39 backendRefs: 40 - name: productpage 41 port: 9080