sigs.k8s.io/gateway-api@v1.0.0/examples/standard/traffic-splitting/traffic-split-2.yaml (about)

     1  #$ Used in:
     2  #$ - site-src/guides/traffic-splitting.md
     3  #$ - site-src/api-types/httproute.md
     4  apiVersion: gateway.networking.k8s.io/v1beta1
     5  kind: HTTPRoute
     6  metadata:
     7    name: foo-route
     8    labels:
     9      gateway: prod-web-gw
    10  spec:
    11    hostnames:
    12    - foo.example.com
    13    rules:
    14    - backendRefs:
    15      - name: foo-v1
    16        port: 8080
    17        weight: 90
    18      - name: foo-v2
    19        port: 8080
    20        weight: 10