<p>I was curious if it is possible to move completely off hostpaths and use local volumes (persistent volumes) instead. However, there doesn't seem to be a way to include volumeClaimTemplates into a daemonset.</p>

<p>Statefulsets provide volumeClaimTemplates, but they require the replicas to be manually defined, as opposed to auto scaling to as many nodes as can be found.</p>

<p>Is there a way to automatically scale to all nodes, and also create a pvc per replica?</p>

<p>Related question where they decided to use statefulsets and give up autoscaling:
<a href="https://stackoverflow.com/questions/55165517/handling-persistentvolumeclaim-in-daemonset">Handling PersistentVolumeClaim in DaemonSet</a></p>

kittydoor
<p>There is no possibility for now to use PersistentVolumes in Daemon Set. </p>

<p>There was a feature request for it on <a href="https://github.com/" rel="nofollow noreferrer">Github</a> but unfortunately it was closed. 
Link to this request: <a href="https://github.com/kubernetes/kubernetes/issues/78902" rel="nofollow noreferrer">volumeClaimTemplates available for Daemon Sets</a></p>

<p>There is a <a href="https://github.com/netdata/helmchart/issues/61#issuecomment-550764504" rel="nofollow noreferrer">comment</a> in the link above which is describing this topic a bit more. </p>
