jetstack / navigator

Managed Database-as-a-Service (DBaaS) on Kubernetes
Apache License 2.0
271 stars 31 forks source link

Cassandra data should be persisted to disk #216

Closed wallrj closed 6 years ago

wallrj commented 6 years ago

The Cassandra statefulset / pods should have a persistent disk.

See https://github.com/jetstack/navigator/blob/master/pkg/controllers/elasticsearch/nodepool/resources.go#L110

if !np.Persistence.Enabled {
    volumes = append(volumes, apiv1.Volume{
        Name: esDataVolumeName,
        VolumeSource: apiv1.VolumeSource{
            EmptyDir: &apiv1.EmptyDirVolumeSource{},
        },
    })
}

/kind feature