kind: HTTPRoute
apiVersion: networking.x-k8s.io/v1alpha1
metadata:
  name: public-store-route
  namespace: store
  labels:
    gateway: external-http
spec:
  hostnames:
  - "store.example.com"
  rules:
  - forwardTo:
    - backendRef:
        group: net.gke.io
        kind: ServiceImport
        name: store
      port: 8080
  - matches:
    - path:
        type: Prefix
        value: /west
    forwardTo:
    - backendRef:
        group: net.gke.io
        kind: ServiceImport
        name: store-west-1
      port: 8080
  - matches:
    - path:
        type: Prefix
        value: /east
    forwardTo:
    - backendRef:
        group: net.gke.io
        kind: ServiceImport
        name: store-east-1
      port: 8080