Install my schema after deploying in kubernetes

Hi all! How do I install my database schema after deploying in kubernetes? The scheme is described in the cql files

I am not a kubernetes expert, but I think you can use the same way you would use in any other cluser, using cqlsh.
Or do you want to automate the loading of the schema, as part of deploying the cluster?

1 Like

To define a schema you use the same way you would use in any other deployment, via cqlsh.
In Kubernetes, cqlsh is available in Scylla image, you can execute it inside one of your Scylla Pods:

kubectl -n <namespace> exec -ti <pod-name> -c scylla -- cqlsh

For example:

kubectl -n scylla exec -ti basic-us-east-1-us-east-1a-0 -c scylla -- cqlsh
2 Likes

Thank you for your reply.
That’s right, I want to automate the loading of the schema, as part of deploying the cluster

Thank you.
I’ll try that option.

Depends on how your automation is built, and in what language

you might want to use on of the drivers for doing CQL operations