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

Host share on example pod is lost when s3-provider is restarted #5

Closed
guysoft opened this issue Jun 17, 2020 · 5 comments
Closed

Host share on example pod is lost when s3-provider is restarted #5

guysoft opened this issue Jun 17, 2020 · 5 comments

Comments

@guysoft
Copy link
Contributor

guysoft commented Jun 17, 2020

It you set the host share to the same path as the mountpoint oh the host, if the host remounts the fuse volume, the example pod looses the folder link and gets Transport endpoint is not connected

The workaround I found was to mount on the example pod a folder up the tree, and then that folder remains static and does not get a different mapping if the fuse gets remounted. That way the folder remains in place and the subfolder that mounted has its node updated correctly.

Ideally you would want something like

  volumes:
  - name: mntdatas3fs
    hostPath:
      path: /mnt
      subpath: data-s3-fs

I am not sure if that is a feature available in Kubernets. will test.

@guysoft guysoft changed the title Host share on example pod Host share on example pod is lost when s3-provider is restarted Jun 17, 2020
@guysoft
Copy link
Contributor Author

guysoft commented Jun 24, 2020

Tested, works

@guysoft guysoft closed this as completed Jun 24, 2020
@freegroup
Copy link
Owner

perfect. Thanks for your feedback.

@lijoabraham-zz
Copy link

lijoabraham-zz commented Nov 6, 2020

There is no subpath feature in kubernetes volume section.

My version is
Client Version: v1.17.9-eks
Server Version: v1.14.9-eks

Error while starting the daemon

error while creating mount source path '/mnt/data-s3-fuse': mkdir /mnt/data-s3-fuse: file exists

The issue still persists and i have to unmount the hostpath everytime to get it working.

@freegroup
Copy link
Owner

kubernetes 1.14 is not supported for this. We use 1.19.2

@lijoabraham-zz
Copy link

lijoabraham-zz commented Nov 6, 2020

Subpath are for volumeMounts right as mentioned here ?

  • name: php
    image: php:7.0-apache
    volumeMounts:
    • mountPath: /var/www/html
      name: site-data
      subPath: html

But not for volumes as specified above.
What could be the other solution for this issue?

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