cassandra
by KubeGems
Apache Cassandra is a free and open-source distributed database management system designed to handle large amounts of data across many commodity servers, providing high availability with no single point of failure. Cassandra offers robust support for clusters spanning multiple datacenters, with asynchronous masterless replication allowing low latency operations for all clients.
About this chart
cassandra
Apache Cassandra is a free and open-source distributed database management system designed to handle large amounts of data across many commodity servers or datacenters.
TL;DR
$ helm repo add bitnami https://charts.bitnami.com/bitnami
$ helm install my-release bitnami/cassandra
Introduction
This chart bootstraps an Apache Cassandra deployment on a Kubernetes cluster using the Helm package manager.
Bitnami charts can be used with Kubeapps for deployment and management of Helm Charts in clusters. This Helm chart has been tested on top of Bitnami Kubernetes Production Runtime (BKPR). Deploy BKPR to get automated TLS certificates, logging and monitoring for your applications.
Prerequisites
- Kubernetes 1.12+
- Helm 3.1.0
- PV provisioner support in the underlying infrastructure
Installing the Chart
To install the chart with the release name my-release:
$ helm repo add bitnami https://charts.bitnami.com/bitnami
$ helm install my-release bitnami/cassandra
These commands deploy one node with Apache Cassandra on the Kubernetes cluster in the default configuration. The Parameters section lists the parameters that can be configured during installation.
Tip: List all releases using
helm list
Uninstalling the Chart
To uninstall/delete the my-release release:
$ helm delete my-release
The command removes all the Kubernetes components associated with the chart and deletes the release.
Parameters
The following table lists the configurable parameters of the Cassandra chart and their default values.
| Parameter | Description | Default |
|---|---|---|
global.imageRegistry | Global Docker Image registry | nil |
global.imagePullSecrets | Global Docker registry secret names as an array | [] (does not add image pull secrets to deployed pods) |
global.storageClass | Global storage class for dynamic provisioning | nil |
Common parameters
| Parameter | Description | Default |
|---|---|---|
nameOverride | String to partially override cassandra.fullname | nil |
fullnameOverride | String to fully override cassandra.fullname | nil |
clusterDomain | Default Kubernetes cluster domain | cluster.local |
commonLabels | Labels to add to all deployed objects | nil |
commonAnnotations | Annotations to add to all deployed objects | [] |
extraDeploy | Array of extra objects to deploy with the release (evaluated as a template) | nil |
Cassandra parameters
| Parameter | Description | Default |
|---|---|---|
image.registry | Cassandra Image registry | docker.io |
image.repository | Cassandra Image name | bitnami/cassandra |
image.tag | Cassandra Image tag | {TAG_NAME} |
image.pullPolicy | Image pull policy | IfNotPresent |
image.pullSecrets | Specify docker-registry secret names as an array | [] (does not add image pull secrets to deployed pods) |
image.debug | Specify if debug logs should be enabled | false |
hostAliases | Add deployment host aliases | [] |
dbUser.user | Cassandra admin user | cassandra |
dbUser.forcePassword | Force the user to provide a non-empty password for dbUser.user | false |
dbUser.password | Password for dbUser.user. Randomly generated if empty | (Random generated) |
dbUser.existingSecret | Use an existing secret object for dbUser.user password (will ignore dbUser.password) | nil |
initDBConfigMap | Configmap for initialization CQL commands (done in the first node). Useful for creating keyspaces at startup | nil (evaluated as a template) |
initDBSecret | Secret for initialization CQL commands (done in the first node) that contain sensitive data. Useful for creating keyspaces at startup | nil (evaluated as a template) |
existingConfiguration | Pointer to a configMap that contains custom Cassandra configuration files. This will override any Cassandra configuration variable set in the chart | nil (evaluated as a template) |
cluster.name | Cassandra cluster name | cassandra |
cluster.seedCount | Number of seed nodes (note: must be greater or equal than 1 and less or equal to replicaCount) | 1 |
cluster.numTokens | Number of tokens for each node | 256 |
cluster.datacenter | Datacenter name | dc1 |
cluster.rack | Rack name | rack1 |
cluster.enableRPC | Enable Thrift RPC endpoint | true |
cluster.enableUDF | Enable CASSANDRA_ENABLE_USER_DEFINED_FUNCTIONS | false |
jvm.extraOpts | Set the value for Java Virtual Machine extra options (JVM_EXTRA_OPTS) | nil |
jvm.maxHeapSize | Set Java Virtual Machine maximum heap size (MAX_HEAP_SIZE). Calculated automatically if nil | nil |
jvm.newHeapSize | Set Java Virtual Machine new heap size (HEAP_NEWSIZE). Calculated automatically if nil | nil |
command | Override default container command (useful when using custom images) | [] |
args | Override default container args (useful when using custom images) | [] |
extraEnvVars | Extra environment variables to be set on cassandra container | {} |
extraEnvVarsCM | Name of existing ConfigMap containing extra env vars | nil |
extraEnvVarsSecret | Name of existing Secret containing extra env vars | nil |
Statefulset parameters
| Parameter | Description | Default |
|---|---|---|
replicaCount | Number of Cassandra replicas | 1 |
updateStrategy | Update strategy type for the statefulset | RollingUpdate |
rollingUpdatePartition | Partition update strategy | nil |
priorityClassName | Cassandra priorityClassName | nil |
podManagementPolicy | StatefulSet pod management policy | OrderedReady |
podAnnotations | Additional pod annotations | {} |
podLabels | Additional pod labels | {} |
podAffinityPreset | Pod affinity preset. Ignored if affinity is set. Allowed values: soft or hard | "" |
podAntiAffinityPreset | Pod anti-affinity preset. Ignored if affinity is set. Allowed values: soft or hard | soft |
nodeAffinityPreset.type | Node affinity preset type. Ignored if affinity is set. Allowed values: soft or hard | "" |
nodeAffinityPreset.key | Node label key to match Ignored if affinity is set. | "" |
nodeAffinityPreset.values | Node label values to match. Ignored if affinity is set. | [] |
affinity | Affinity for pod assignment | {} (evaluated as a template) |
nodeSelector | Node labels for pod assignment | {} (evaluated as a template) |
tolerations | Tolerations for pod assignment | [] (evaluated as a template) |
topologySpreadConstraints | Topology Spread Constraints for pod assignment | [] ( |
Deploy cassandra with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has cassandra on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartcassandra is pinned at v7.6.2 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply