k8ssandra / k8ssandra-operator

The Kubernetes operator for K8ssandra
https://k8ssandra.io/
Apache License 2.0
153 stars 72 forks source link

How to initialize the cassandra keyspaces in an automated fashion simiilar to initDBConfigmap of bitnami charts #1127

Open vinaykw opened 8 months ago

vinaykw commented 8 months ago

I Have installed a cassandra datacenter pods uisng the k8ssandra operator helm chart

I want to know is there an automated way in k8ssandra operator to just specify the cql script location from where the k8ssandra operator will automatically create keyspaces using those scripts. This facility is available in bitnami helm charts using intiDBConfigMap

Environment

Cassandra DB version is 3.11.13

Please let me know how to achieve this

adejanovski commented 8 months ago

Hi @vinaykw, we don't support this feature. Any schema will have to be created after the cluster is up and running without any automation provided by k8ssandra-operator. If you feel like implementing it, we can provide guidance on how to contribute.