Software Engineering

Set up App Mesh on AWS EKS

Set up App Mesh on AWS EKS
Written by admin


You may observe the steps under to put in App Mesh on AWS EKS (Kubernetes).

Step 1 – Conditions

curl -o pre_upgrade_check.sh https://uncooked.githubusercontent.com/aws/eks-charts/grasp/steady/appmesh-controller/improve/pre_upgrade_check.sh
sh ./pre_upgrade_check.sh

Step 2 – Add Helm Repo

helm repo add eks https://aws.github.io/eks-charts

Step 3 – Add Customized Useful resource Definitions (CRDs)

kubectl apply -k "https://github.com/aws/eks-charts/steady/appmesh-controller/crds?ref=grasp"

Step 4 – Create a Namespace for App Mesh

kubectl create ns appmesh-system

Step 5 – Set Surroundings Variables

You’ll need to set a few setting variables to make issues simpler later.

export CLUSTER_NAME=cluster-name
export ACCOUNT_ID=111122223333
export AWS_REGION=eu-west-1

aws eks list-clusters will make it easier to get the CLUSTER_NAME.

aws sts get-caller-identity will make it easier to get the ACCOUNT_ID.

AWS_REGION must be the area the place your EKS cluster has been setup.

Step 6 – Add an IAM OIDC supplier

eksctl utils associate-iam-oidc-provider 
    --region=$AWS_REGION 
    --cluster $CLUSTER_NAME 
    --approve

Step 7 – Create an IAM Service Account

eksctl create iamserviceaccount 
    --cluster $CLUSTER_NAME 
    --namespace appmesh-system 
    --name appmesh-controller 
    --attach-policy-arn arn:aws:iam::aws:coverage/AWSCloudMapFullAccess,arn:aws:iam::aws:coverage/AWSAppMeshFullAccess,arn:aws:iam::aws:coverage/AWSXRayDaemonWriteAccess 
    --override-existing-serviceaccounts 
    --approve

Step 8 – Set up the App Mesh Controller utilizing Helm

helm improve -i appmesh-controller eks/appmesh-controller 
    --namespace appmesh-system 
    --set area=$AWS_REGION 
    --set serviceAccount.create=false 
    --set serviceAccount.title=appmesh-controller 
    --set log.degree=debug

Step 9 – Be aware the App Mesh Deployment

kubectl get deployment appmesh-controller 
    -n appmesh-system 
    -o json  | jq -r ".spec.template.spec.containers[].picture"

Step 10 – Create a Fargate Profile within the EKS cluster

eksctl create fargateprofile --cluster $CLUSTER_NAME --name appmesh-system --namespace appmesh-system

About the author

admin

Leave a Comment