intechops6
intechops6

Reputation: 1097

How to make consul to use manually created PersistentVolumeClaim in Helm

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

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.

Upvotes: 0

Views: 615

Answers (1)

Jakub
Jakub

Reputation: 8830

As @coderanger said

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

As showed on github docs there is no variables to change that.


If You have to change it, You would have to work with consul-statefulset.yaml, this chart provide dynamically volumes for each statefulset pod created.

volumeMounts

volumeClaimTemplates

Use helm fetch to download consul files to your local directory

helm fetch stable/consul --untar

Then i found a github answer with good explain and example about using one PV & PVC in all replicas of Statefulset, so I think it could actually work in consul chart.

Upvotes: 1

Related Questions