Closed blecx closed 2 years ago
Ok, so I've got it. I just used the storageclass.yaml as is from the clone git repo. This storageclasse uses the mounter: rclone and not s3sf.
So changing it to mounter: s3fs did the trick. And things working as expeced
---
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
name: csi-s3
provisioner: ch.ctrox.csi.s3-driver
parameters:
# specify which mounter to use
# can be set to rclone, s3fs, goofys or s3backer
mounter: s3fs
# to use an existing bucket, specify it here:
# bucket: some-existing-bucket
csi.storage.k8s.io/provisioner-secret-name: csi-s3-secret
csi.storage.k8s.io/provisioner-secret-namespace: kube-system
csi.storage.k8s.io/controller-publish-secret-name: csi-s3-secret
csi.storage.k8s.io/controller-publish-secret-namespace: kube-system
csi.storage.k8s.io/node-stage-secret-name: csi-s3-secret
csi.storage.k8s.io/node-stage-secret-namespace: kube-system
csi.storage.k8s.io/node-publish-secret-name: csi-s3-secret
csi.storage.k8s.io/node-publish-secret-namespace: kube-system
So classical user error.
Repeat the steps in the readme and things are working. fine
Remark: rclone with minio is described here. So this is a describtion using rclone client. What this option does when using as mounter keeps unclear to me.
Hello,
I just went throug the installation description. The S3 is a mino instance without TLS and runs outside the kubernetes cluster. It's a demo installation. I can run a minio/mc docker inside the kubernetes and can connect to minio, create and delete buckets. So far so good networking works.
I'm running the example. So I use the secret.yaml, the pvc.yaml and the pod.yaml
So publishing user/password here is not critical The secret.yaml looks like
The pvc.yaml
The pvc is created fine. Calling kubectl describe pvc csi-s3-pvc does not show any errors and its bound, access mode rwo.
Now starting the nginx
The nginx starts fine, logs and describe shows no errors
Next opening a shell with
fuse shows a mounted pvc on /var/lib/www/html. Using the UI of minio shows a fresh created bucket in read/write mode. So everything is fine until now. But comaring with the Readme. I get a different answer.
In the readme the answer to the mount should start with
Is there something that went wrong, because I got a different answer?
When executing
I get an error
So what is going on there? I should be able read,write on that mounted pvc, but it does not do anything.
Is there something I have overseen? Or is this behaviour as expected.
Any help welcome