Sidecars
For extra needs not covered by the defaults container managed through the CassandraCluster CRD, we are allowing you to define your own sidecars which will be deployed into the cassandra node pods.
To do this, you will configure the SidecarConfigs
property in CassandraCluster.Spec
.
CassandraCluster fragment for dynamic sidecars definition :
sidecarConfigs
(required) : Defines the list of container config object, which will be added into each pod of cassandra node, it requires a list of kubernetes Container spec.
With the above configuration, the following configuration will be added to the rack statefulset
definition :
info
Note that all sidecars added with this configuration will have some of the environment variables from cassandra container merged with those defined into the sidecar container for example :
- CASSANDRA_CLUSTER_NAME
- CASSANDRA_SEEDS
- CASSANDRA_DC
- CASSANDRA_RACK