b9cd0e18ad
This is a part of the stateless set of commits for CephCSI. This commit removes the dependency on config maps to store cephFS provisioned volumes, and instead relies on RADOS based objects and keys, and required CSI VolumeID encoding to detect the provisioned volumes. Changes: - Provide backward compatibility to provisioned volumes by older plugin versions (1.0.0 or older) - Remove Create/Delete support for statically provisioned volumes (fixes #382) - Added namespace support to RADOS OMaps and used the same to store RADOS CSI objects and keys in the CephFS metadata pool - Added support to mention fsname for CephFS provisioning (fixes #359) - Changed field name in CSI Identifier to 'location', to denote a pool or fscid - Updated mounter cache to use new scheme - Required Helm manifests are updated - Required documentation and other manifests are updated - Made driver option 'metadatastorage' as optional, as fresh installs do not need to specify the same Testing done: - Create/Mount/Delete PVC - Create/Delete 5 PVCs - Mount version 1.0.0 PVC - Delete version 1.0.0 PV - Mount Statically defined PV/PVC/Pod - Mount Statically defined version 1.0.0 PV/PVC/Pod - Delete Statically defined version 1.0.0 PV/PVC/Pod - Node restart when mounted to test mountcache - Use InstanceID other than 'default' - RBD basic round of tests, as namespace is added to OMaps - csitest against ceph-fs plugin - NOTE: CephFS plugin still does not detect and address already created volumes but of a different size - Test not providing any value to the metadata storage parameter Signed-off-by: ShyamsundarR <srangana@redhat.com> |
||
---|---|---|
.github | ||
cmd | ||
deploy | ||
docs | ||
examples | ||
pkg | ||
scripts | ||
vendor | ||
.gitignore | ||
.mergify.yml | ||
.travis.yml | ||
deploy.sh | ||
Gopkg.lock | ||
Gopkg.toml | ||
LICENSE | ||
Makefile | ||
README.md |
Ceph CSI
Container Storage Interface (CSI) driver, provisioner, and attacher for Ceph RBD and CephFS.
Overview
Ceph CSI plugins implement an interface between CSI enabled Container Orchestrator (CO) and Ceph cluster. It allows dynamically provisioning Ceph volumes and attaching them to workloads.
Independent CSI plugins are provided to support RBD and CephFS backed volumes,
- For details about configuration and deployment of RBD and CephFS CSI plugins,
see documentation in
docs/
. - For example usage of RBD and CephFS CSI plugins, see examples in
examples/
.
Project status
Status: Alpha
The alpha status reflects possible non-backward compatible changes in the future, and is thus not recommended for production use. There is work in progress that would change on-disk metadata for certain operations, possibly breaking backward compatibility.
Supported CO platforms
Ceph CSI drivers are currently developed and tested exclusively on Kubernetes environments. There is work in progress to make this CO independent and thus support other orchestration environments in the future.
For Kubernetes versions 1.11 and 1.12, please use 0.3 images and deployments.
For Kubernetes versions 1.13 and above, please use 1.0 images and deployments.
Support Matrix
Ceph-CSI features and available versions
Plugin | Features | CSI driver Version |
---|---|---|
CephFS | Dynamically provision, de-provision File mode RWO volume | >=v0.3.0 |
Dynamically provision, de-provision File mode RWX volume | >=v0.3.0 | |
Creating and deleting snapshot | - | |
Provision volume from snapshot | - | |
Provision volume from another volume | - | |
Resize volume | - | |
RBD | Dynamically provision, de-provision Block mode RWO volume | >=v0.3.0 |
Dynamically provision, de-provision Block mode RWX volume | >=v0.3.0 | |
Dynamically provision, de-provision File mode RWO volume | v1.0.0 | |
Creating and deleting snapshot | >=v0.3.0 | |
Provision volume from snapshot | v1.0.0 | |
Provision volume from another volume | - | |
Resize volume | - |
Ceph-CSI versions and CSI spec compatibility
Ceph CSI driver Version | CSI spec version |
---|---|
v0.3.0 | v0.3 |
v1.0.0 | v1.0.0 |
CSI spec and Kubernetes version compatibility
Please refer to the matrix in the Kubernetes documentation.
Troubleshooting
Please submit an issue at: Issues
Slack Channels
Join us at Rook ceph-csi Channel