Getting started
This page was generated from content adapted from the AWS Developer Guide
App Mesh and Amazon ECS
Important Only version v1.9.0.0-prod or later is supported for use with App Mesh.
Important Only version v1.9.0.0-prod or later is supported for use with App Mesh.
Note The Envoy container definition must be marked as
essential
. We recommend allocating512
CPU units and at least64
MiB of memory to the Envoy container. On Fargate the lowest you will be able to set is1024
MiB of memory. The virtual node name for the Amazon ECS service must be set to the value of theAPPMESH_RESOURCE_ARN
property. This property requires version1.15.0
or later of the Envoy image. For more information, see Envoy image. The value for theuser
setting must match theIgnoredUID
value from the task definition proxy configuration. In this example, we use1337
. The health check shown here waits for the Envoy container to bootstrap properly before reporting to Amazon ECS that the Envoy container is healthy and ready for the application containers to start. By default, App Mesh uses the name of the resource you specified inAPPMESH_RESOURCE_ARN
when Envoy is referring to itself in metrics and traces. You can override this behavior by setting theAPPMESH_RESOURCE_CLUSTER
environment variable with your own name. This property requires version1.15.0
or later of the Envoy image. For more information, see Envoy image.Important Fargate must use a port value greater than 1024.
Note For more examples and walkthroughs for App Mesh, see the App Mesh examples repository.
App Mesh and Kubernetes
Note The App Mesh controller is not available for Amazon EKS private clusters.
Note If your Amazon EKS cluster family is
IPv6
, please set the cluster name when deploying the App Mesh controller by adding the following option to the previous command--set clusterName=$CLUSTER_NAME
. Important If your cluster is in theme-south-1
,ap-east-1
,ap-southeast-3
,eu-south-1
, oraf-south-1
Regions, then you need to add the following option to the previous command: Replace account-id and Region-code with one of the appropriate sets of values.Note If you view the log for the running container, you may see a line that includes the following text, which can be safely ignored.
Important Once the controller has created an App Mesh resource, we recommend that you only make changes to or delete the App Mesh resource using the controller. If you make changes to or delete the resource using App Mesh, the controller won't change or recreate the changed or deleted App Mesh resource for ten hours, by default. You can configure this duration to be less. For more information, see Configuration on GitHub.
Important The value for the
app
matchLabels
selector
in the spec must match the value that you specified when you created the virtual node in sub-step3
of Step 2: Deploy App Mesh resources, or the sidecar containers won't be injected into the pod. In the previous example, the value for the label ismy-app-1
. If you deploy a virtual gateway, rather than a virtual node, then theDeployment
manifest should include only the Envoy container. For more information about the image to use, see Envoy image. For a sample manfest, see the deployment example on GitHub.Note For more examples and walkthroughs for App Mesh, see the App Mesh examples repository.
App Mesh and Amazon EC2
Note The
APPMESH_RESOURCE_ARN
property requires version1.15.0
or later of the Envoy image. For more information, see Envoy image. Important Only version v1.9.0.0-prod or later is supported for use with App Mesh.Note For more examples and walkthroughs for App Mesh, see the App Mesh examples repository.
Last updated