@@ -353,7 +353,7 @@ func TemplateStatefulSet(cr *v1.KeeperCluster, replicaID string) *appsv1.Statefu
353353 VolumeClaimTemplates : []corev1.PersistentVolumeClaim {
354354 {
355355 ObjectMeta : metav1.ObjectMeta {
356- Name : "ch-storage-volume" ,
356+ Name : PersistentVolumeName ,
357357 },
358358 Spec : cr .Spec .Storage ,
359359 },
@@ -386,7 +386,7 @@ func TemplateStatefulSet(cr *v1.KeeperCluster, replicaID string) *appsv1.Statefu
386386func generateConfigForSingleReplica (cr * v1.KeeperCluster , replicaID string ) Config {
387387 config := Config {
388388 ListenHost : "0.0.0.0" ,
389- Path : BasePath ,
389+ Path : BaseDataPath ,
390390 Prometheus : PrometheusConfig {
391391 Endpoint : "/metrics" ,
392392 Port : PortPrometheusScrape ,
@@ -401,7 +401,7 @@ func generateConfigForSingleReplica(cr *v1.KeeperCluster, replicaID string) Conf
401401 KeeperServer : KeeperServer {
402402 TcpPort : PortNative ,
403403 ServerID : replicaID ,
404- StoragePath : StoragePath ,
404+ StoragePath : BaseDataPath ,
405405 DigestEnabled : true ,
406406 LogStoragePath : StorageLogPath ,
407407 SnapshotStoragePath : StorageSnapshotPath ,
@@ -441,12 +441,12 @@ func buildVolumes(cr *v1.KeeperCluster, replicaID string) ([]corev1.Volume, []co
441441 MountPath : ConfigPath ,
442442 },
443443 {
444- Name : "ch-storage-volume" ,
445- MountPath : StoragePath ,
444+ Name : PersistentVolumeName ,
445+ MountPath : BaseDataPath ,
446446 SubPath : "var-lib-clickhouse" ,
447447 },
448448 {
449- Name : "ch-storage-volume" ,
449+ Name : PersistentVolumeName ,
450450 MountPath : "/var/log/clickhouse-keeper" ,
451451 SubPath : "var-log-clickhouse" ,
452452 },
0 commit comments