Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does s3fs support virtual style? #116

Open
ChandlerBent opened this issue May 19, 2024 · 1 comment
Open

Does s3fs support virtual style? #116

ChandlerBent opened this issue May 19, 2024 · 1 comment

Comments

@ChandlerBent
Copy link

yaml

---
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
  name: harbor-storage-cos
provisioner: ru.yandex.s3.csi
parameters:
  mounter: s3fs
  # you can set mount options here, for example limit memory cache size (recommended)
  options: ""
  # to use an existing bucket, specify it here:
  # bucket: 
  csi.storage.k8s.io/provisioner-secret-name: cos-s3-secret
  csi.storage.k8s.io/provisioner-secret-namespace: kube-system
  csi.storage.k8s.io/controller-publish-secret-name: cos-s3-secret
  csi.storage.k8s.io/controller-publish-secret-namespace: kube-system
  csi.storage.k8s.io/node-stage-secret-name: cos-s3-secret
  csi.storage.k8s.io/node-stage-secret-namespace: kube-system
  csi.storage.k8s.io/node-publish-secret-name: cos-s3-secret
  csi.storage.k8s.io/node-publish-secret-namespace: kube-system

cos-s3-secret

---
apiVersion: v1
data:
  accessKeyID: xxx
  endpoint: https://xxx.cos.ap-guangzhou.myqcloud.com
  secretAccessKey: xxxx
immutable: false
kind: Secret
metadata:
  name: cos-s3-secret
  namespace: kube-system
  resourceVersion: '25997598'
type: Opaque

I got the error by creating pvc

ailed to provision volume with StorageClass "storage-cos": rpc error: code = Unknown desc = failed to check if bucket pvc-4344afb4-9f97-4869-83bf-ec629118335f exists: The specified key does not exist.
@ZYWNB666
Copy link

I also encountered this problem. Have you solved it
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants