Alibaba Cloud Kubernetes CSI Plugin
English | 简体中文
Overview
Alibaba cloud CSI plugins implement an interface between CSI enabled Container Orchestrator and Alibaba Cloud Storage. It allows dynamically provision Disk volumes and attach it to workloads. Current implementation of CSI plugins was tested in Kubernetes environment (requires Kubernetes 1.10+).
Current Support: Alibaba cloud Disk, OSS, NAS, LVM;
CSI Version Support
CSI using with Kubrentes:
Kubernetes | CSI Version | CSI Status |
---|---|---|
v1.9 | v0.1 | Alpha |
v1.10 | v0.2 | Beta |
v1.11 | v0.3 | Beta |
v1.12 | v0.3 | Beta |
v1.13 | v1.0.0 | GA |
Requirements
1. Kubernetes Configurations
Enable Feature gates:
--feature-gates=VolumeSnapshotDataSource=true,CSINodeInfo=true,CSIDriverRegistry=true
Enable Privileged:
enable kube-apiserver with --allow-privileged=true ...
enable kubelet with --allow-privileged=true ...
Create CRDs for csidriver、csinodeinfo:
# kubectl create -f https://raw.githubusercontent.com/kubernetes/csi-api/ab0df28581235f5350f27ce9c27485850a3b2802/pkg/crd/testdata/csidriver.yaml --validate=false
# kubectl create -f https://raw.githubusercontent.com/kubernetes/csi-api/ab0df28581235f5350f27ce9c27485850a3b2802/pkg/crd/testdata/csinodeinfo.yaml --validate=false
2. RBAC
# kubectl create -f ./deploy/rbac.yaml
3. Plugin Dependencies
CSI v1.0.0 should be supported by below externals:
External Plugin Oversea Repo | External Plugin Aliyun Repo |
---|---|
quay.io/k8scsi/csi-attacher:v1.0.0 | registry.cn-hangzhou.aliyuncs.com/plugins/csi-attacher:v1.0.0 |
quay.io/k8scsi/csi-snapshotter:v1.0.0 | registry.cn-hangzhou.aliyuncs.com/plugins/csi-snapshotter:v1.0.0 |
quay.io/k8scsi/csi-provisioner:v1.0.0 | registry.cn-hangzhou.aliyuncs.com/plugins/csi-provisioner:v1.0.0 |
quay.io/k8scsi/csi-node-driver-registrar:v1.0.1 | registry.cn-hangzhou.aliyuncs.com/plugins/csi-node-driver-registrar:v1.0.1 |
Disk CSI-Plugin
Disk csi-plugin support Alicloud disk provision and attachment. And alicloud disk is type of block storage, can only used as ReadWriteOnce mode. Only be attached to one node at the same time.
More detail information pls refer to Disk.
NAS CSI-Plugin
Nas csi-plugin can support alicloud nas mount, and does not support provision nas volume. Nas storage is type of network storage and can be mount by multi nodes at the same time.
More detail information pls refer to NAS.
OSS CSI-Plugin
OSS csi-plugin support Alicloud oss mount, and does not support provision volume.
More detail information pls refer to OSS.
LVM CSI-Plugin
LVM csi-plugin support lvm create and mount. Lvm is not high availability.
More detail information pls refer to LVM.
Troubleshooting
Please submit an issue at: Issues