Learn how to configure CSI-S3 for use with Filebase.
What is CSI-S3?
CSI-S3 is a container storage interface developed for S3-compatible storage. Container storage interfaces like CSI-S3 can dynamically allocate buckets and mount them via FUSE inside any container, such as Docker containers.
Read below to learn how to use CSI-S3 with Filebase.
Prerequisites:
1. Download the CSI-S3 GitHub repository into your working directory:
git clone https://github.com/CTrox/csi-s3
2. Create a new Kubernetes secret with the command:
kubectl create secret filebase-config
By default, this will create a file located at secret/filebase-config
3. Open this file and enter the following content:
Replace the following values:
FILEBASE_ACCESS_KEY: Filebase Access Key
FILEBASE_SECRET_KEY: Filebase Secret Key
4. Next, deploy the driver for CSI-S3:
cd deploy/kubernetes
kubectl create -f provisioner.yaml
kubectl create -f attacher.yaml
kubectl create -f csi-s3.yaml
5. Then create a storage class using the command:
kubectl create -f examples/storageclass.yaml
6. Test the S3 driver with the following workflow:
kubectl create -f examples/pvc.yaml
Make sure that the PVC has been bound:
kubectl get pvc csi-s3-pvc
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE