AWS EKS Cluster Storage Initialization Configuration
Platform integration with AWS EKS and storage initialization configuration.
TOC
Constraints and Limitations
-
The default efs-sc file storage class may not support permission modifications after mounting, which may cause some applications like PostgreSQL and Jenkins to fail to run properly.
-
A1 series instances are not supported by AL2023 AMIs, which prevents the EBS block storage plugin (Amazon EBS CSI Driver) from deploying properly. The EBS CSI driver has GA multi-architecture/ARM support, so the limitation is with AMI/instance support rather than the driver itself. If you need to use EBS block storage classes, avoid using the following instance types and consider Graviton2/3 alternatives instead:
- a1.medium
- a1.large
- a1.xlarge
- a1.2xlarge
- a1.4xlarge
Recommended alternatives: Use Graviton2/3 instance families such as m6g, c6g, r6g, t4g, etc., which provide better performance and full EBS CSI driver support.
Prerequisites
-
Ensure kubectl and AWS CLI tools are available.
-
If you have created an EKS cluster, import the Amazon EKS cluster; if not, create an AWS EKS cluster.
-
Deploy the EFS file storage plugin Amazon EFS CSI Driver and EBS block storage plugin Amazon EBS CSI Driver in the EKS cluster.
Note: If using EFS file storage, create file storage in the EKS region and record the File System ID from the File System.
Configuration Steps
Create Storage Classes
-
Go to Platform Management and click Storage Management > Storage Classes in the left navigation.
-
Click the dropdown next to Create Storage Class > Create from YAML.
-
Add the following content to the YAML file to create default storage classes as needed. The default storage class name for file storage is efs-sc, and for block storage is ebs-sc.
-
EFS File Storage
Note: Replace
<File System ID>with the actual File System ID, e.g.,fileSystemId: fs-05aef9e1edd309f2b. -
EBS Block Storage
-
-
Click Create.
Note: If the default storage classes don't meet requirements, create new storage classes following the above steps and modify parameters as needed. See Available Storage Class Parameters.
Modify Storage Class Project Assignment
-
In the left navigation, click Storage Management > Storage Classes.
-
Click the three dots next to the storage class named efs-sc or ebs-sc > Update Project.
-
Select the Project Assignment method as needed and click Update to assign the storage class to projects.
Related Operations
Configure Available Storage Class Parameters
-
EFS File Storage Available Parameters
-
EBS Block Storage Available Parameters
Note: For performance parameters of different volume types, see Amazon EBS Volume Types.