IEC Container Storage Interface
Kubernetes ensures that applications can correctly access persistent storage through the Container Storage Interface (CSI). This enables the system to upgrade, update, and enhance its storage capabilities without having to update Kubernetes, maintaining a consistent, reliable platform.
IEC provides a set of storage classes. With IEC CSI you can do the following:
- Create and use CSI-enabled persistent volumes
- Protect CSI-enabled volumes using token authorization and encryption defined at the StorageClass or PVC level
- Back up CSI-enabled volumes
StorageClass Parameters
The following configurable values and default values are available on the EonStor GS/GSx/KS product series.
| Parameter | Description | Configurable value | Default value | Example |
| compress | Indicate if data compression is enabled. |
| 'false' | 'false' |
| dedupe | Indicate if data deduplication is enabled. |
| 'false' | 'false' |
| drivetype | The drive type that consists of the volume. |
| 'any' | 'ssd' |
| groupacl | Group acl of a volume. The permission of different groups are divided by commas. | Any valid format of group acl | (empty string) | ' ' |
| iscsi | The volume type as block-level or file-level. When iscsi is set to false, the volume type is file-level.When iscsi is set to true, the volume type is block-level. |
|
| 'false' |
| min_size |
| |||
| permission | The access permission to the volume (owner-group-other). | Any expressions of Linux permission | 'rwxr-xr-x' | 'rwxr-xr-x' |
| protection | The level of data protection |
| 'any' | 'r5' |
| replica | The number of data copy |
|
| '1' |
| snapshot | Indicate if snapshot is enabled in the volume. When snapshot is enabled, the space used by the snapshot will share the same space as the volume. |
| 'false' | 'false' |
| storageip | The IP address of the storage | A valid IP address or 'any' | 'any' | '192.168.1.1' |
| useracl | User acl of a volume. The permission of different users are divided by commas. | Any valid format of user acl | (empty string) | ' ' |
| poolIds |
|
| ||
| xfsSnapshot |
|
|
Volume Locality
Use data copies (replica) to ensure high availability and fault tolerance of data. In a containerized application environment, data persistence and availability are critical. The replica feature ensures that your applications can still access the data they need even if the node where the data resides fails.
- Data replicas: When creating a PV through CSI, you can set the number of data replicas through configuring the parameter of StorageClass. You can have up to three replicas.
Note:
The greater the number of replicas, the more fault-tolerant the data is. More replicas will also occupy more storage space.
- High availability: IEC automatically selects appropriate nodes for the replicas to reside so that replicas can be distributed across the nodes in the cluster. This prevents data from being unavailable due to the failure of one specific node.
- Consistency: Each write operation is synchronized to all replicas to ensure that each replica is up to date.
- Automatic repair: IEC detects the status of replicas. When a node is abnormal, resulting in the loss of replicas, it will automatically create new replicas on other healthy nodes to meet the number of replicas that has been configured.