<p>I am trying to set up persistent storage with the new <a href="https://github.com/prometheus-community/helm-charts/tree/main/charts/prometheus" rel="nofollow noreferrer">prometheus-community</a> helm chart. I have modified the helm <em>values</em> files as seen below. Currently when the chart is reinstalled (I use <a href="https://docs.tilt.dev/api.html" rel="nofollow noreferrer">Tiltfiles</a> for this) the PVC is deleted and therefore the data is not persisted.
I assume that the problem could have something to do with the fact that there is no statefulset running for the server, but I am not sure how to fix it.</p>
<p>(The solutions from <a href="https://stackoverflow.com/questions/56391693/how-to-enable-persistence-in-helm-prometheus-operator">here</a> does not solve my problem, as it is for the old chart.)</p>
<pre><code>server:
  persistentVolume:
    enabled: true
    storageClass: default
    accessModes:
    - ReadWriteOnce
    size: 8Gi 
</code></pre>

Manuel 
<p>I enabled the statefulset on the prometheus server and now it seems to work.</p>
<pre><code>server:
  persistentVolume:
    enabled: true
    storageClass: default-hdd-retain
    accessModes:
    - ReadWriteOnce
    size: 40Gi
  statefulSet:
    enabled: true
</code></pre>
