This Kubernetes operator automates the Cassandra operations such as deploying a new rack aware cluster, adding/removing nodes, configuring the C* and JVM parameters, upgrading JVM and C* versions, and many more...
This PR has the extended functionality of running a custom script when the Cassandra pod is started up, using the postStart lifecycle hook. One use case is when the user wishes to create custom roles on the startup of Cassandra
Why?
In case a user wishes to perform an operation immediately after Cassandra is started up, such as create a role with cqlsh, the script specified by /etc/cassandra_post_start.sh can be injected via configmap to run on post-start.
What's in this PR?
This PR has the extended functionality of running a custom script when the Cassandra pod is started up, using the postStart lifecycle hook. One use case is when the user wishes to create custom roles on the startup of Cassandra
Why?
In case a user wishes to perform an operation immediately after Cassandra is started up, such as create a role with cqlsh, the script specified by /etc/cassandra_post_start.sh can be injected via configmap to run on post-start.