September 2019
Intermediate to advanced
668 pages
15h 59m
English
To route parts of the normal users to the new v2 versions of the microservices, we have to modify the weight distribution in the virtual services. They are currently 100/0; in other words, all traffic is routed to the old v1 versions. We can achieve this as we did before, that is, by editing the definition files of the virtual services in the kubernetes/services/overlays/prod/istio folder and then running a kubectl apply command to make the change take effect. As an alternative, we can use the kubectl patch command to change the weight distribution directly on the virtual service objects in the Kubernetes API server.
I find the patch command useful when making a number of changes to the same objects to try something ...