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

Support for Ephemeral Local Volumes #482

Closed
arjunrn opened this issue Apr 8, 2020 · 14 comments
Closed

Support for Ephemeral Local Volumes #482

arjunrn opened this issue Apr 8, 2020 · 14 comments
Labels
lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.

Comments

@arjunrn
Copy link

arjunrn commented Apr 8, 2020

Is your feature request related to a problem? Please describe.
The EBS driver currently only support Persistent Volumes. We run several workloads which would benefit from having support for Ephemeral Local Volumes where we don't need to create persistent volumes for Jobs, Deployments or any other custom controllers.

Describe the solution you'd like in detail
The EBS supports Ephemeral Volumes as well.

Describe alternatives you've considered
None

@leakingtapan
Copy link
Contributor

What kind of Ephemeral Volumes are you looking for? EBS is by nature a persistent volume

@jgallucci32
Copy link

This sounds like the inverse of the problem the EBS CSI driver is trying to solve. If you do not require volumes for Job, Deployments, or any other custom controllers, then why use a storage class at all?

@arjunrn
Copy link
Author

arjunrn commented May 17, 2020

@leakingtapan For Kubernetes jobs which need some kind of storage for computations generally a PVC has to be provisioned and then mounted to in the job pod. The volume is not provisioned automatically when the pod is created but has to be created separately. The lifecycle of the volume is also independent of the pod. Also if multiple instances of the job have to be run concurrently it is not possible with PVC. Inline ephemeral volumes try to solve this issue by dynamically creating volumes in such cases.

@leakingtapan
Copy link
Contributor

You are right about the ephemeral volume. But is it designed to support cloud provider provisioned persistence volume and tied the volume lifecycle with pod lifecycle? @msau42

@arjunrn
Copy link
Author

arjunrn commented May 18, 2020

@leakingtapan I suspected it wont be supported. The docs over here say:

The driver will not receive separate gRPC calls for provisioning, attaching, detaching, and deleting of volumes.

But I was hoping to that the maintainer might know more.

@msau42
Copy link
Contributor

msau42 commented May 18, 2020

There is a proposal being designed in kubernetes that will allow any persistent volume driver to be used for ephemeral use cases without changing the CSI driver implementation: kubernetes/enhancements#1701

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Aug 16, 2020
@palsivertsen
Copy link

/remove-lifecycle stale

I'm setting up a service where I have a RW primary set up in a StatefulSet using a PV and several RO followers. It's a read heavy service by nature so only the followers are used by other services. It would be nice if the followers could have a dedicated volume that follows the life cycle of the pod for caching.

@k8s-ci-robot k8s-ci-robot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Aug 26, 2020
@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Nov 24, 2020
@apryiomka
Copy link

PVs and PVCs do not solve the problem of ephemeral volumes. As the name suggest, the volume acts as temp storage while the pod is running. Deployments come with replica sets and some volumes cannot be mounted across multiple replicas running on different nodes or AZs. The purpose of ephemeral storage is to provide a temp local files storage for running pods like map reduce jobs or file based merge sorts. Creation of such a storage should be a unobtrusive process and not require creating VPs beforehand.

@msau42
Copy link
Contributor

msau42 commented Dec 8, 2020

The generic ephemeral volumes feature which is alpha in Kubernetes 1.19 should address this use case. It creates PVCs underneath so any CSI driver that supports PVCs will work without any special support. And the lifetime of the PVC follows the lifetime of the Pod.

@arjunrn
Copy link
Author

arjunrn commented Dec 8, 2020

Closing this issue because the ephemeral volumes backed by PVCs is now directly supported by Kubernetes as mentioned in @msau42 's comment.

@arjunrn arjunrn closed this as completed Dec 8, 2020
@pkit
Copy link

pkit commented Feb 7, 2022

@msau42 @arjunrn I'm not sure I follow
"generic ephemeral volumes" docs specifically say that the backing storage must be local to the node.
Which is not the case for EBS-backed volumes.

@msau42
Copy link
Contributor

msau42 commented Feb 7, 2022

I'm not sure I follow "generic ephemeral volumes" docs specifically say that the backing storage must be local to the node. Which is not the case for EBS-backed volumes.

Those docs are for the "csi inline volume" feature, which is different (sorry the names are too similar).

Here are the docs for "generic ephemeral volumes": https://kubernetes.io/docs/concepts/storage/ephemeral-volumes/#generic-ephemeral-volumes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.
Projects
None yet
Development

No branches or pull requests

9 participants