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 · 3 comments
Open

Does s3fs support virtual style? #116

ChandlerBent opened this issue May 19, 2024 · 3 comments

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

@chris2k20
Copy link

chris2k20 commented Nov 1, 2024

Same here:
image

Did you fix that problem?
Want to use the hetzner s3 storage.

@chris2k20
Copy link

Update: That worked for me now using hetzner s3:

# helm repo add yandex-s3 https://yandex-cloud.github.io/k8s-csi-s3/charts
# helm upgrade --install csi-s3 yandex-s3/csi-s3 --values values.yml -n kube-system
secret:
  accessKey: "NXXXXXXXXXXXXXXXXXXX"
  secretKey: "gXXXXXXXXXXXXXXXXXXXXXX9"
  endpoint: "https://nbg1.your-objectstorage.com"

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

3 participants