The NIFCLOUD Additional Storage Container Storage Interface (CSI) Driver provides a CSI interface used by Container Orchestrators to manage the lifecycle of NIFCLOUD Additional Storage volumes.
The driver implementation refers to aws-ebs-csi-driver.
The following CSI gRPC calls are implemented:
- Controller Service: CreateVolume, DeleteVolume, ControllerPublishVolume, ControllerUnpublishVolume, ControllerExpandVolume, ControllerGetCapabilities, ValidateVolumeCapabilities
- NodeService: NodeStageVolume, NodeUnstageVolume, NodePublishVolume, NodeUnpublishVolume, NodeExpandVolume, NodeGetCapabilities, NodeGetInfo, NodeGetVolumeStats
- Identity Service: GetPluginInfo, GetPluginCapabilities, Probe
There are several optional parameters that could be passes into CreateVolumeRequest.parameters map:
File system type that will be formatted during volume creation
- xfs
- ext2
- ext3
- ext4
ext4
Storage type (See https://pfs.nifcloud.com/service/disk.htm)
- standard
- high-speed-a
- high-speed-b
- high-speed (randomly select a or b)
- flash
- standard-flash-a
- standard-flash-b
- standard-flash (randomly select a or b)
- high-speed-flash-a
- high-speed-flash-b
- high-speed-flash (randomly select a or b)
standard-flash-a
Accounting type (See https://pfs.nifcloud.com/service/disk.htm)
- monthly
- hourly
hourly
- Create Secret resource with an NIFCLOUD access key id and secret access key.
apiVersion: v1 kind: Secret metadata: name: nifcloud-additional-storage-csi-secret namespace: kube-system stringData: access_key_id: "" secret_access_key: ""
- Add helm repository.
helm repo add nifcloud-additional-storage-csi-driver https://nifcloud.github.io/nifcloud-additional-storage-csi-driver/ helm repo update
- Install.
- Please change the parameter
<REGION>
to your environment. - See values.yaml for configurable values.
helm upgrade --install nifcloud-additional-storage-csi-driver nifcloud-additional-storage-csi-driver/nifcloud-additional-storage-csi-driver \ --namespace kube-system \ --set nifcloud.region=<REGION> \ --set nifcloud.accessKeyId.secretName=nifcloud-additional-storage-csi-secret \ --set nifcloud.accessKeyId.key=access_key_id \ --set nifcloud.secretAccessKey.secretName=nifcloud-additional-storage-csi-secret \ --set nifcloud.secretAccessKey.key=secret_access_key
- Please change the parameter