Setting up Amazon EKS with EFS
Before you begin
- An AWS account with the required IAM permissions. For the full list, see Configuring Amazon EKS for Dynamic Engine deployment.
About this task
This procedure creates a new EKS cluster in a dedicated virtual private cloud (an Amazon VPC) and configures EFS mount targets across Availability Zones and installs the EFS CSI (Container Storage Interface) driver. The procedure also creates a storage class that references your EFS filesystem and uses access points to dynamically provision persistent volumes.
Procedure
Results
Your EKS cluster and its EFS storage class are ready for Dynamic Engine and its environments.
What to do next
Deploy Dynamic Engine and its environments to the EKS cluster you configured in this procedure, and specify the storage class you created in this procedure.
For detailed instructions, see Provisioning a storage class dedicated to Dynamic Engine environment services. These instructions apply to all supported platforms, including Amazon EKS, Google GKE, and on-premises Kubernetes.
To clean up the test infrastructure, delete the resources in this order:
- Delete the EKS
cluster:
eksctl delete cluster --name "$EKS_CLUSTER_NAME" --region "$AWS_REGION" - Delete the EFS mount targets before deleting the file system and its security
group:
MT_IDS=$(aws efs describe-mount-targets \ --region "$AWS_REGION" \ --file-system-id "$EFS_ID" \ --query "MountTargets[].MountTargetId" \ --output text) for mt in $(echo "$MT_IDS" | tr ' ' '\n'); do aws efs delete-mount-target --region "$AWS_REGION" --mount-target-id "$mt" done aws efs delete-file-system --region "$AWS_REGION" --file-system-id "$EFS_ID" aws ec2 delete-security-group --region "$AWS_REGION" --group-id "$EFS_SG_ID"