Code Monkey home page Code Monkey logo

Comments (4)

leonjyq avatar leonjyq commented on September 7, 2024
apiVersion: v1
kind: Pod
metadata:
  name: efs-app
spec:
  containers:
  - name: app
    image: public.ecr.aws/docker/library/centos:centos7.9.2009
    command: ["/bin/sh"]
    args: ["-c", "while true; do echo $(date -u) >> /data/out.txt; sleep 5; done"]
    volumeMounts:
    - name: persistent-storage
      mountPath: /data
  volumes:
  - name: persistent-storage
    persistentVolumeClaim:
      claimName: csi-s3-pvc
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: csi-s3-pvc
  namespace: default
spec:
  accessModes:
  - ReadWriteMany
  resources:
    requests:
      storage: 5Gi
  storageClassName: csi-s3
---
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
  name: csi-s3
provisioner: ru.yandex.s3.csi
parameters:
  mounter: geesefs
  # mounter: geesefs
  options: "--memory-limit 1000 --dir-mode 0777 --file-mode 0666"
  bucket: sva-map-data
  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

I tried in the dynamic way, I can see the folder has been created in S3 bucket, but no file is uploaded.
image

from k8s-csi-s3.

vitalif avatar vitalif commented on September 7, 2024

Hi, please check mounts on the host, maybe you have another incarnation of the staging path bug. Post the output of mount|grep -i geesefs here from the host please...
Basically you should check that your container actually sees a FUSE geesefs mount in the desired directory.

from k8s-csi-s3.

JessyCat92 avatar JessyCat92 commented on September 7, 2024

Hey there,
I have exactly the same problem - still searching for a solution.

For now I just installed the driver via helm and values and I see bucket created, checked logs but did not found anything bad... but if I look into my bucket files are not there. (I used pvc and pod from example folder and created iin exec -it mode some files)

Additionally as soon as I mount this pvc my pod even does not terminate correctly anymore.

So I also checked mount and realised ... container does not see the mount - what can it be?

from k8s-csi-s3.

vitalif avatar vitalif commented on September 7, 2024

Maybe it's the mismatch of kubelet path? Are you using /var/lib/kubelet or something else? You can override it now if you install csi-s3 via Helm

from k8s-csi-s3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.