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

emptyDir persistent volumes #75378

Open
adampl opened this Issue Mar 14, 2019 · 2 comments

Comments

Projects
None yet
2 participants
@adampl
Copy link

adampl commented Mar 14, 2019

What would you like to be added:
I need a volume accessible from different pods on each node, serving as a shared file cache. In my case it should be a tmpfs volume to provide maximum speed, so I'd use emptyDir with medium: Memory.

Therefore I'd like emptyDir to be available in PersistentVolumeSpec just like all other volume sources.

Why is this needed:
Currently (AFAIK) the only way to achieve this is to:

  • mkdir on each node's host filesystem at some predefined path
  • optionally mount a tmpfs volume there
  • create a PersistentVolume of type hostPath or local to mount that path

This method seems very "un-kubernetic" to me and could be easily automated.
Even pure Docker can do this:

docker volume create --driver local --opt type=tmpfs --opt device=tmpfs \
       --opt o=size=100m,uid=1000 foo

There is an old similar issue #27732 but I don't think it has to be limited to tmpfs only.

@adampl

This comment has been minimized.

Copy link
Author

adampl commented Mar 14, 2019

@kubernetes/sig-storage-feature-requests

@k8s-ci-robot k8s-ci-robot added sig/storage and removed needs-sig labels Mar 14, 2019

@k8s-ci-robot

This comment has been minimized.

Copy link
Contributor

k8s-ci-robot commented Mar 14, 2019

@adampl: Reiterating the mentions to trigger a notification:
@kubernetes/sig-storage-feature-requests

In response to this:

@kubernetes/sig-storage-feature-requests

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.