Traffic routing and canary release
In the previous section, we went through some of the functionality of virtual services; in this section, let’s go through how you can distribute traffic to multiple destinations.
I’m assuming you have the envoy-dummy
config map configured and the envoy
Pod and service running as per the 01-envoy-proxy.yaml
file. If not, follow the instructions in the previous section to get these configured.
In the following exercise, we will be creating another version of the envoydummy
Pod called v2
, which returns a different response than v1
. We will deploy v2
alongside v1
and then configure traffic splitting between the two versions of the envoydummy
Pods:
- Create another version of the
envoy
mock service but with a different message:direct_response: status: 200 ...