<p>When installing consul using Helm, it expects the cluster to dynamic provison the PersistentVolume requested by consul-helm chart. It is the default behavior. </p>

<p>I have the PV and PVC created manually and need to use this PV to be used by consul-helm charts. Is it posisble to install consul using helm to use manually created PV in kubernetes.</p>

intechops6
<p>As @coderanger said </p>

<blockquote>
  <p>For this to be directly supported the chart author would have to provide helm variables you could set. Check the docs.</p>
</blockquote>

<p>As showed on <a href="https://github.com/helm/charts/tree/master/stable/consul#configuration" rel="nofollow noreferrer">github</a> docs there is no variables to change that. </p>

<hr>

<p>If You have to change it, You would have to work with <a href="https://github.com/helm/charts/blob/master/stable/consul/templates/consul-statefulset.yaml" rel="nofollow noreferrer">consul-statefulset.yaml</a>, this chart provide dynamically volumes for each statefulset pod created.</p>

<p><a href="https://github.com/helm/charts/blob/master/stable/consul/templates/consul-statefulset.yaml#L100-L109" rel="nofollow noreferrer">volumeMounts</a></p>

<p><a href="https://github.com/helm/charts/blob/master/stable/consul/templates/consul-statefulset.yaml#L263-L278" rel="nofollow noreferrer">volumeClaimTemplates</a></p>

<p>Use helm fetch to download consul files to your local directory</p>

<p><code>helm fetch stable/consul --untar</code> </p>

<p>Then i found a <a href="https://stackoverflow.com/questions/49729461/add-persistent-volume-in-kubernetes-statefulset">github answer</a> with good explain and example about using one PV &amp; PVC in all replicas of Statefulset, so I think it could actually work in consul chart.</p>
