There are two ways to create the components of the App Mesh service mesh:
For this tutorial, we’ll use kubectl to define the App Mesh components.
To do this, we’ll add Custom Resource Definitions (CRDs), and the App Mesh controller logic that syncs our kubernetes cluster’s CRD state with the AWS cloud-side App Mesh control plane.
To add the CRDs, from the repository base directory, execute the following commands:
kubectl apply -f 3_add_crds/mesh-definition.yaml
kubectl apply -f 3_add_crds/virtual-node-definition.yaml
kubectl apply -f 3_add_crds/virtual-service-definition.yaml
Output should be similar to:
Next, add the controller by executing the following command:
kubectl apply -f 3_add_crds/controller-deployment.yaml
Output should be similar to:
Execute the following command to verify the App Mesh Controller is running:
kubectl get pods -nappmesh-system
You should see output similar to:
NOTE: The CRD and Injector are AWS supported open source projects. If you plan to deploy the CRD and/or Injector for production projects, always build them from the latest AWS Github repos to stay up to date on the latest features and bug fixes, and deploy them from your own container registry.