Weight Routing
Realize routing function based on user-defined weight.
apiVersion: service.dubbo.apache.org/v1alpha1
kind: VirtualService
metadata:
name: reviews-route
spec:
hosts:
- reviews.prod.svc.cluster.local
dubbo:
- name: weightRoute
route details:
- name: weight
route:
-destination:
host: reviews.prod.svc.cluster.local
subset: v1
weight: 60
-destination:
host: reviews.prod.svc.cluster.local
subset: v2
weight: 40
---
apiVersion: service.dubbo.apache.org/v1alpha1
kind: DestinationRule
metadata:
name: reviews-route
spec:
host: reviews.prod.svc.cluster.local
subsets:
- name: v1
labels:
version: v1
- name: v2
labels:
version: v2
Last modified January 2, 2023: Enhance en docs (#1798) (95a9f4f6c1)