diff --git a/pkg/reconciliation/construct_podtemplatespec.go b/pkg/reconciliation/construct_podtemplatespec.go index bece9dae..a581d5db 100644 --- a/pkg/reconciliation/construct_podtemplatespec.go +++ b/pkg/reconciliation/construct_podtemplatespec.go @@ -340,7 +340,15 @@ func addVolumes(dc *api.CassandraDatacenter, baseTemplate *corev1.PodTemplateSpe EmptyDir: &corev1.EmptyDirVolumeSource{}, }, } - volumeDefaults = append(volumeDefaults, sparkConf) + + collectDConf := corev1.Volume{ + Name: "collectd-conf", + VolumeSource: corev1.VolumeSource{ + EmptyDir: &corev1.EmptyDirVolumeSource{}, + }, + } + + volumeDefaults = append(volumeDefaults, sparkConf, collectDConf) } } } @@ -785,6 +793,10 @@ func buildContainers(dc *api.CassandraDatacenter, baseTemplate *corev1.PodTempla Name: "spark-conf", MountPath: "/opt/dse/resources/spark/conf", }) + cassContainer.VolumeMounts = append(cassContainer.VolumeMounts, corev1.VolumeMount{ + Name: "collectd-conf", + MountPath: "/opt/dse/resources/dse/collectd/etc/collectd", + }) } } else { cassContainer.VolumeMounts = append(cassContainer.VolumeMounts, corev1.VolumeMount{