Implementing traffic management
In this section of the chapter, we will enable a mesh in the EKS cluster. After that, we will create an App Mesh component, virtual service, virtual node, virtual router, and virtual gateway. We will also create another version of a service and perform weight-based traffic routing.
Installing the App Mesh controller
The following diagram shows the traffic flow if we enable App Mesh and create all of its components:
Perform the following steps to create an App Mesh controller in an EKS cluster:
- We will install the App Mesh controller on the EKS cluster using the Helm CLI. So, we need to install the Helm binary:
$ curl -sSL https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash $ helm version --short
- Once Helm is installed, add the EKS charts repository:
$ helm repo add eks https://aws.github.io/eks-charts
- We will...