diff --git a/bitnami/clickhouse/CHANGELOG.md b/bitnami/clickhouse/CHANGELOG.md
index be3fca93e6..42e7bbf686 100644
--- a/bitnami/clickhouse/CHANGELOG.md
+++ b/bitnami/clickhouse/CHANGELOG.md
@@ -1,8 +1,12 @@
# Changelog
-## 9.2.7 (2025-06-03)
+## 9.3.0 (2025-06-04)
-* [bitnami/clickhouse] :zap: :arrow_up: Update dependency references ([#34067](https://github.com/bitnami/charts/pull/34067))
+* [bitnami/clickhouse] Add persistence.volumeName ([#33991](https://github.com/bitnami/charts/pull/33991))
+
+## 9.2.7 (2025-06-03)
+
+* [bitnami/clickhouse] :zap: :arrow_up: Update dependency references (#34067) ([c77cc95](https://github.com/bitnami/charts/commit/c77cc95447711fb5af803c033cd67424fc23a5fc)), closes [#34067](https://github.com/bitnami/charts/issues/34067)
## 9.2.6 (2025-05-30)
diff --git a/bitnami/clickhouse/Chart.yaml b/bitnami/clickhouse/Chart.yaml
index a2daaf7533..567f001d25 100644
--- a/bitnami/clickhouse/Chart.yaml
+++ b/bitnami/clickhouse/Chart.yaml
@@ -34,4 +34,4 @@ maintainers:
name: clickhouse
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/clickhouse
-version: 9.2.7
+version: 9.3.0
diff --git a/bitnami/clickhouse/README.md b/bitnami/clickhouse/README.md
index 86ec95a40e..83aa8aa638 100644
--- a/bitnami/clickhouse/README.md
+++ b/bitnami/clickhouse/README.md
@@ -470,6 +470,7 @@ The [Bitnami ClickHouse](https://github.com/bitnami/containers/tree/main/bitnami
| `persistentVolumeClaimRetentionPolicy.whenScaled` | Volume retention behavior when the replica count of the StatefulSet is reduced | `Retain` |
| `persistentVolumeClaimRetentionPolicy.whenDeleted` | Volume retention behavior that applies when the StatefulSet is deleted | `Retain` |
| `persistence.enabled` | Enable persistence using Persistent Volume Claims | `true` |
+| `persistence.volumeName` | Name to assign the volume | `data` |
| `persistence.existingClaim` | Name of an existing PVC to use | `""` |
| `persistence.storageClass` | Storage class of backing PVC | `""` |
| `persistence.labels` | Persistent Volume Claim labels | `{}` |
@@ -757,4 +758,4 @@ Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
-limitations under the License.
\ No newline at end of file
+limitations under the License.
diff --git a/bitnami/clickhouse/templates/_init_containers.tpl b/bitnami/clickhouse/templates/_init_containers.tpl
index f4cf06e0ba..347e7abbab 100644
--- a/bitnami/clickhouse/templates/_init_containers.tpl
+++ b/bitnami/clickhouse/templates/_init_containers.tpl
@@ -36,6 +36,6 @@ Returns an init-container that changes the owner and group of the persistent vol
find {{ $roleValues.persistence.mountPath }} -mindepth 1 -maxdepth 1 -not -name ".snapshot" -not -name "lost+found" | xargs -r chown -R {{ $roleValues.containerSecurityContext.runAsUser }}:{{ $roleValues.podSecurityContext.fsGroup }}
{{- end }}
volumeMounts:
- - name: data
+ - name: {{ $roleValues.persistence.volumeName }}
mountPath: {{ $roleValues.persistence.mountPath }}
{{- end -}}
diff --git a/bitnami/clickhouse/templates/statefulset.yaml b/bitnami/clickhouse/templates/statefulset.yaml
index a03a34df4f..6642f63f4b 100644
--- a/bitnami/clickhouse/templates/statefulset.yaml
+++ b/bitnami/clickhouse/templates/statefulset.yaml
@@ -219,7 +219,7 @@ spec:
lifecycle: {{- include "common.tplvalues.render" (dict "value" $.Values.lifecycleHooks "context" $) | nindent 12 }}
{{- end }}
volumeMounts:
- - name: data
+ - name: {{ $.Values.persistence.volumeName }}
mountPath: {{ $.Values.persistence.mountPath }}
{{- if or $.Values.configuration $.Values.existingConfigmap }}
- name: configuration
@@ -325,10 +325,10 @@ spec:
{{- include "common.tplvalues.render" (dict "value" $.Values.extraVolumes "context" $) | nindent 8 }}
{{- end }}
{{- if not $.Values.persistence.enabled }}
- - name: data
+ - name: {{ $.Values.persistence.volumeName }}
emptyDir: {}
{{- else if $.Values.persistence.existingClaim }}
- - name: data
+ - name: {{ $.Values.persistence.volumeName }}
persistentVolumeClaim:
claimName: {{ tpl $.Values.persistence.existingClaim $ }}
{{- else }}
@@ -341,7 +341,7 @@ spec:
- apiVersion: v1
kind: PersistentVolumeClaim
metadata:
- name: data
+ name: {{ $.Values.persistence.volumeName }}
{{- if or $.Values.persistence.annotations $.Values.commonAnnotations }}
{{- $claimAnnotations := include "common.tplvalues.merge" ( dict "values" ( list $.Values.persistence.annotations $.Values.commonLabels ) "context" $ ) }}
annotations: {{- include "common.tplvalues.render" ( dict "value" $claimAnnotations "context" $ ) | nindent 10 }}
diff --git a/bitnami/clickhouse/values.yaml b/bitnami/clickhouse/values.yaml
index 6a793b0ceb..669216983c 100644
--- a/bitnami/clickhouse/values.yaml
+++ b/bitnami/clickhouse/values.yaml
@@ -571,7 +571,7 @@ initContainers: []
pdb:
create: true
minAvailable: ""
- maxUnavailable: ""
+ maxUnavailable: ""
## ClickHouse Autoscaling configuration
## ref: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/
##
@@ -892,6 +892,9 @@ persistence:
## @param persistence.enabled Enable persistence using Persistent Volume Claims
##
enabled: true
+ ## @param persistence.volumeName Name to assign the volume
+ ##
+ volumeName: data
## @param persistence.existingClaim Name of an existing PVC to use
##
existingClaim: ""