I have a cluster of 3 Cassandra pods working in Kubernet. I want to make an automatic backup of my data, and for this I need to run the nodetool snaphot command inside each container, and I need to call it remotely. What is the right way to do this from an architectural point of view? Do I need to modify the cassandra image to have ssh deamon in it, or do I need to have auxiliary containers in cassandra containers or do this using the kubectl exec Kubernetes API calls? Other options?
source
share