Why jenkins doesn't use volumeclaimtemplate in statefulset?

Hi, I’m in the process of deploying a Jenkins release to my Kubernetes cluster using the helm chart provided in this repository and had a few questions.

When deploying jenkins with statefulset, why is it not set to volumeclaimtemplate for the jenkins home volume?

I’m wondering why you don’t use volumeclaimtemplate, as it seems like if you have volumeclaimtemplate, the data from jenkins would be persistent when you redeploy the helm chart.

The helm-chart link is GitHub - jenkinsci/helm-charts: Jenkins helm charts.

Thanks you

Hi,

I don’t know the historical reasons, but I recognize it’s risky to loose the volume if the chart is uninstalled.

On my I’m using

persistence:
  enabled: true
  existingClaim: my-jenkins-volume

In order avoid deleting the volume during helm uninstall

Regards,