Show a Gateway API HTTPRoute with a weighted canary.
IntermediateConceptServices, Networking, Ingress & Gateway API
Answer
Two backendRefs with weights split traffic by ratio; this is native, no annotations needed.
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata: { name: web }
spec:
parentRefs: [{ name: public-gw }]
hostnames: ["shop.example.com"]
rules:
- backendRefs:
- { name: web-v1, port: 80, weight: 90 }
- { name: web-v2, port: 80, weight: 10 }