The route weight command accepts a service name but does not use it when assigning weights to the targets. The current implementation matches on tags only.
The matching should happen as follows:
# assign weight w to src on service svc
route weight svc src weight w
# assign weight w to src on services with tags t1 and t2
route weight src weight w tags "t1,t2"
# assign weight w to src on service svc with tags t1 and t2
route weight svc src weight w tags "t1,t2"
The
route weightcommand accepts a service name but does not use it when assigning weights to the targets. The current implementation matches on tags only.The matching should happen as follows: