How to modify Cassandra config values when using helm chart in Terraform

Viewed 416

I'm using a Bitnami Helm Chart for Cassandra in order to deploy it with Terraform. I'm freshly new to it all, and I struggle with changing one config value, mainly commitlog_segment_size_in_mb. I want to do it before I run terraform commands, but in the Helm Chart itself, I failed to find any mentions of it.

I know I can change it after the terraform deployment in the cassandra.yaml file, but I would like to have this value controllable, so that another terraform update will not overwrite this file.

What would be the best approach to change values of Cassandra config?

  1. Can I modify it in Terraform if it's not in the Helm Chart?
  2. Can I export parts of the configuration to a different file, so that I know my next Terraform installations will not overwrite them?
1 Answers

This isn't a direct answer to your question but in case you weren't aware of it already, K8ssandra.io is a ready-made platform for running Apache Cassandra in Kubernetes using Helm charts to deploy Cassandra with the DataStax Cassandra Operator (cass-operator) under the hood with all the tools built-in:

  • Reaper for automated repairs
  • Medusa for backups and restores
  • Metrics Collector for monitoring with Prometheus + Grafana
  • Traefik templates for k8s cluster ingress
  • Stargate.io - a data gateway for connecting to Cassandra using REST API, GraphQL API and JSON/Doc API

K8ssandra and all components are fully open-source and free to use, improve and enjoy. Cheers!

Related