<p>I have a yml file where I create a pvc on my provider (digital ocean)</p>
<pre><code>apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: test-pvc
  namespace: test
spec:
  accessModes:
  - ReadWriteOnce
  resources:
    requests:
      storage: 10Gi
  storageClassName: do-block-storage
</code></pre>
<p>I am also using a helm chart and want to be able to point to the already created pvc
How can I do this? This helm chart is deployed after the PVC is already created/deployed</p>
<pre><code>  master:
    persistence:
      enabled: true
      ## mariadb data Persistent Volume Storage Class
      ## If defined, storageClassName: &lt;storageClass&gt;
      ## If set to &quot;-&quot;, storageClassName: &quot;&quot;, which disables dynamic provisioning
      ## If undefined (the default) or set to null, no storageClassName spec is
      ##   set, choosing the default provisioner.  (gp2 on AWS, standard on
      ##   GKE, AWS &amp; OpenStack)
      ##
      # storageClass: &quot;-&quot;
      accessMode: ReadWriteOnce
      size: 10Gi
</code></pre>

<p>To mount your PVC in your helm chart, do this:</p>
<ul>
<li>Disable persistence volume creation in helm chart</li>
</ul>
<pre><code>master:
    persistence:
      enabled: false #Setting it to false
</code></pre>
<ul>
<li>Modify your deployment yaml, its located in templates folder of your helm chart. <a href="https://kubernetes.io/docs/tasks/configure-pod-container/configure-persistent-volume-storage/#create-a-pod" rel="nofollow noreferrer">Point your Pod to mount your own PVC</a>.</li>
</ul>
<p>Something like this:</p>
<pre><code>apiVersion: v1
kind: Pod
metadata:
  name: task-pv-pod
spec:
  volumes:
    - name: task-pv-storage
      persistentVolumeClaim:
        claimName: test-pvc  # pointing to existing test-pvc
  containers:
    - name: task-pv-container
      image: nginx
      ports:
        - containerPort: 80
          name: &quot;http-server&quot;
      volumeMounts:
        - mountPath: &quot;/usr/share/nginx/html&quot;
          name: task-pv-storage
</code></pre>
<p><strong>Update:</strong></p>
<p>Specifically in your case, you can specify your pvc name against <a href="https://github.com/bitnami/charts/blob/master/bitnami/ghost/values.yaml#L227" rel="nofollow noreferrer">existingClaim parameter</a> in values.yaml, it will be <a href="https://github.com/bitnami/charts/blob/master/bitnami/ghost/templates/deployment.yaml#L214-L215" rel="nofollow noreferrer">picked up by your deployment</a>.</p>
