March 2020
Intermediate to advanced
626 pages
14h 45m
English
Traffic splitting or traffic shifting in Consul is accomplished through service-resolver and service-splitter. This can be seen in the following diagram:

service-resolver defines the subset based upon the metadata filter, which is defined in the Kubernetes deployment through the use of annotations. service-splitter provides a configuration that is weight-based to shift the traffic from the Consul virtual service to the actual deployments, which are v1 and v2 in this case.
Implementing of these will be covered in detail in Chapter 22, Exploring Traffic Management in Consul. Now, let's move on to the mesh gateway.
Read now
Unlock full access