This module will cover the network resiliency capabilities of Istio service-mesh on Amazon EKS.
Note: This module will build on the application resources deployed in Module 1 - Getting Started. That means you don't have to execute the Destroy section in Module 1.
In this step we add the Istio mesh resources to wrap the frontend
, productcatalog
and
catalogdetail
services.
A DestinationRule
is created for catalogdetail
to select subsets
based on the version
label of the destination pods. However, the initial VirtualService
definition does not specify any
subset configuration thereby leading to a uniform traffic spread across both subsets.
# This assumes that you are currently in "istio-on-eks/modules/01-getting-started" folder
cd ../03-network-resiliency
# Install the mesh resources
kubectl apply -f ../00-setup-mesh-resources/
Output should be similar to:
destinationrule.networking.istio.io/catalogdetail created
virtualservice.networking.istio.io/catalogdetail created
virtualservice.networking.istio.io/frontend created
virtualservice.networking.istio.io/productcatalog created