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

Feature Request : volumeClaimTemplates available for Daemon Sets #78902

Open
guillaume-braibant opened this issue Jun 11, 2019 · 0 comments

Comments

Projects
None yet
2 participants
@guillaume-braibant
Copy link

commented Jun 11, 2019

/sig apps

Feature Request :

I would like to be able to use the volumeClaimTemplates with a Daemon Set.

Why?

I am using local persistent volumes on my nodes and I would like to be able to 'say' : "Hey K8S ! Schedule a pod on each node with a daemon set. For each pod, once scheduled, dynamically create a pvc to claim a local storage attached to the node the pod is scheduled on using a dedicated storage class."

Most of the daemon set specs I have seen so far use hostpath volumes for storage. I would like to use local persistent volumes (= LPV) instead of hostpath volumes. The problem is that you need a PVC to get a LPV. Daemon sets do not allow you to dynamically create a PVC that claims a LPV by using a dedicated storage class like stateful sets do (using volumeClaimTemplates).

Why not using stateful sets with pod anti-affinity rules ?

That is the workaround. Still, it would be nice to be able to use local persistent volumes as instead of hostpath when you need a local storage for a pod that is scheduled on each node with a daemon set.

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.