<p>I'm deploying postgres DB using helm by this steps:</p>
<ol>
<li>applying pv:</li>
</ol>
<pre><code>apiVersion: v1
kind: PersistentVolume
metadata:
  namespace: admin-4
  name: postgresql-pv-admin-4
  labels:
    type: local
spec:
  storageClassName: manual
  capacity:
    storage: 10Gi
  accessModes:
    - ReadWriteOnce
  hostPath:
    path: &quot;/mnt/data&quot;
</code></pre>
<ol start="2">
<li>applying PVC:</li>
</ol>
<pre><code>apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  namespace: admin-4
  name: postgresql-pvc-admin-4
spec:
  storageClassName: manual
  accessModes:
    - ReadWriteOnce
  resources:
    requests:
      storage: 10Gi
</code></pre>
<ol start="3">
<li>running helm command:</li>
</ol>
<pre><code>helm install postgres bitnami/postgresql --set persistence.enabled=true --set persistence.existingClaim=postgresql-pvc-admin-4 --set volumePermissions.enabled=true -n admin-4
</code></pre>
<p>This is the output:
<a href="https://i.stack.imgur.com/G5Svy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/G5Svy.png" alt="k get pod,pv,pvc" /></a></p>

Eslam Ali
<p>On the latest bitnami/postgresql chart (chart version 11.8.1), the fields to set are:</p>
<pre class="lang-yaml prettyprint-override"><code>primary:
  persistence:
    enabled: true
    existingClaim: postgresql-pvc-admin-4
</code></pre>
