Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Feature Request : volumeClaimTemplates available for Daemon Sets #78902
Feature Request :
I would like to be able to use the volumeClaimTemplates with a Daemon Set.
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.