Here is a list of features implemented by the Scaleway File Storage CSI driver.
The Scaleway File Storage CSI driver implements the resize feature (example for Kubernetes). It allows an online resize (without the need to detach the File System). However resizing can only be done upwards, decreasing a volume's size is not supported.
ReadWriteMany Volumes can be mounted as read-write by many nodes.
To create a RWX Volume, ReadWriteMany needs to be added to the accessModes.
For instance, here is a PVC with ReadWriteMany enabled:
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: my-rwx-pvc
spec:
accessModes:
- ReadWriteMany
[...]This section is Kubernetes specific. Note that Scaleway CSI driver may work for older Kubernetes versions than those announced. The CSI driver allows to use Persistent Volumes in Kubernetes.
| Scaleway CSI Driver \ Kubernetes Version | Min K8s Version | Max K8s Version |
|---|---|---|
| master branch | v1.20 | - |
Some examples are available here.
These steps will cover how to install the Scaleway File Storage CSI driver in your Kubernetes cluster, using Helm.
- A Kubernetes cluster running on Scaleway instances (v1.20+)
- Scaleway Project or Organization ID, Access and Secret key
- Helm v3
-
Add the Scaleway Helm repository.
helm repo add scaleway https://helm.scw.cloud/ helm repo update
-
Deploy the latest release of the
scaleway-filestorage-csiHelm chart.helm upgrade --install scaleway-filestorage-csi --namespace kube-system scaleway/scaleway-filestorage-csi \ --set controller.scaleway.env.SCW_DEFAULT_REGION=fr-par \ --set controller.scaleway.env.SCW_DEFAULT_ZONE=fr-par-1 \ --set controller.scaleway.env.SCW_DEFAULT_PROJECT_ID=11111111-1111-1111-1111-111111111111 \ --set controller.scaleway.env.SCW_ACCESS_KEY=ABCDEFGHIJKLMNOPQRST \ --set controller.scaleway.env.SCW_SECRET_KEY=11111111-1111-1111-1111-111111111111Review the configuration values for the Helm chart.
-
You can now verify that the driver is running:
$ kubectl get pods -n kube-system [...] scaleway-filestorage-csi-controller-76897b577d-b4dgw 8/8 Running 0 3m scaleway-filestorage-csi-node-hvkfw 3/3 Running 0 3m scaleway-filestorage-csi-node-jmrz2 3/3 Running 0 3m [...]
You should see the scaleway-filestorage-csi-controller and the scaleway-filestorage-csi-node pods.
You can build the Scaleway File Storage CSI driver executable using the following commands:
make compileYou can build a local docker image named scaleway-filestorage-csi for your current architecture using the following command:
make docker-buildIn order to run the tests:
make testIn addition to unit tests, we provide tools to run the following tests:
If you are looking for a way to contribute please read the contributing guide
Participation in the Kubernetes community is governed by the CNCF Code of Conduct.
We love feedback. Feel free to reach us on Scaleway Slack community, we are waiting for you on #k8s.
You can also join the official Kubernetes slack on #scaleway-k8s channel
You can also raise an issue if you think you've found a bug.