cassandra
by kubelauncher
Apache Cassandra distributed NoSQL database
About this chart
cassandra
Apache Cassandra distributed NoSQL database
TL;DR
helm repo add kubelauncher https://kubelauncher.github.io/charts
helm install my-cassandra kubelauncher/cassandra
Or via OCI:
helm install my-cassandra oci://ghcr.io/kubelauncher/charts/cassandra
Introduction
This chart deploys Apache Cassandra on Kubernetes using the kubelauncher/cassandra Docker image. Cassandra uses a peer-to-peer gossip protocol — every node is equal and there is no single point of failure.
The values structure follows the same conventions as popular community charts, allowing easy migration.
Architecture
Single node (default)
A single Cassandra node. Suitable for development and testing.
helm install my-cassandra kubelauncher/cassandra
Cluster
Scale the cluster by increasing replicaCount. All nodes join the same cluster via gossip and share data according to the configured replication factor.
helm install my-cassandra kubelauncher/cassandra \
--set replicaCount=3 \
--set cluster.name=cassandra \
--set cluster.datacenter=dc1 \
--set cluster.rack=rack1
The CQL port is 9042, the intra-node port is 7000. Persistence is enabled by default with 16Gi volumes. The default snitch is SimpleSnitch.
Installing the Chart
helm repo add kubelauncher https://kubelauncher.github.io/charts
helm install my-cassandra kubelauncher/cassandra \
--set replicaCount=3
Or via OCI:
helm install my-cassandra oci://ghcr.io/kubelauncher/charts/cassandra \
--set replicaCount=3
Uninstalling the Chart
helm uninstall my-cassandra
Values
| Key | Type | Default | Description |
|---|---|---|---|
| affinity | object | {} | |
| clusterDomain | string | "cluster.local" | |
| clusterName | string | "cassandra" | |
| commonAnnotations | object | {} | |
| commonLabels | object | {} | |
| containerPorts.cql | int | 9042 | |
| containerPorts.intraNode | int | 7000 | |
| containerPorts.tlsIntraNode | int | 7001 | |
| containerSecurityContext.allowPrivilegeEscalation | bool | false | |
| containerSecurityContext.capabilities.drop[0] | string | "ALL" | |
| containerSecurityContext.enabled | bool | true | |
| containerSecurityContext.readOnlyRootFilesystem | bool | false | |
| containerSecurityContext.runAsGroup | int | 1001 | |
| containerSecurityContext.runAsNonRoot | bool | true | |
| containerSecurityContext.runAsUser | int | 1001 | |
| containerSecurityContext.seccompProfile.type | string | "RuntimeDefault" | |
| datacenter | string | "dc1" | |
| enableServiceLinks | bool | false | |
| endpointSnitch | string | "SimpleSnitch" | |
| extraDeploy | list | [] | |
| extraEnvVars | list | [] | |
| extraVolumeMounts | list | [] | |
| extraVolumes | list | [] | |
| fullnameOverride | string | "" | |
| global.defaultStorageClass | string | "" | |
| global.imagePullSecrets | list | [] | |
| global.imageRegistry | string | "" | |
| global.storageClass | string | "" | |
| heapNewSize | string | "" | |
| image.digest | string | "sha256:84730f5439ef1e1ddd8ed8a9bd661a04f9675255cc6d8286a30afd25d7ad45f9" | |
| image.pullPolicy | string | "Always" | |
| image.pullSecrets | list | [] | |
| image.registry | string | "ghcr.io" | |
| image.repository | string | "kubelauncher/cassandra" | |
| image.tag | string | "5.0.9" | |
| initContainers | list | [] | |
| livenessProbe.enabled | bool | true | |
| livenessProbe.failureThreshold | int | 5 | |
| livenessProbe.initialDelaySeconds | int | 60 | |
| livenessProbe.periodSeconds | int | 30 | |
| livenessProbe.successThreshold | int | 1 | |
| livenessProbe.timeoutSeconds | int | 10 | |
| maxHeapSize | string | "512M" | |
| nameOverride | string | "" | |
| namespaceOverride | string | "" | |
| networkPolicy.additionalRules | list | [] | |
| networkPolicy.allowExternal | bool | true | |
| networkPolicy.enabled | bool | false | |
| nodeSelector | object | {} | |
| persistence.accessModes[0] | string | "ReadWriteOnce" | |
| persistence.annotations | object | {} | |
| persistence.enabled | bool | true | |
| persistence.existingClaim | string | "" | |
| persistence.labels | object | {} | |
| persistence.mountPath | string | "/data/cassandra" | |
| persistence.size | string | "16Gi" | |
| persistence.storageClass | string | "" | |
| podAnnotations | object | {} | |
| podLabels | object | {} | |
| podSecurityContext.enabled | bool | true | |
| podSecurityContext.fsGroup | int | 1001 | |
| rack | string | "rack1" | |
| readinessProbe.enabled | bool | true | |
| readinessProbe.failureThreshold | int | 5 | |
| readinessProbe.initialDelaySeconds | int | 60 | |
| readinessProbe.periodSeconds | int | 10 | |
| readinessProbe.successThreshold | int | 1 | |
| readinessProbe.timeoutSeconds | int | 10 | |
| replicaCount | int | 1 | |
| resources | object | {} | |
| resourcesPreset | string | "small" | |
| service.annotations | object | {} | |
| service.clusterIP | string | "" | |
| service.headless.annotations | object | {} | |
| service.labels | object | {} | |
| service.nodePorts.cql | string | "" | |
| service.nodePorts.intraNode | string | "" | |
| service.nodePorts.tlsIntraNode | string | "" | |
| service.ports.cql | int | 9042 | |
| service.ports.intraNode | int | 7000 | |
| service.ports.tlsIntraNode | int | 7001 | |
| service.type | string | "ClusterIP" | |
| serviceAccount.annotations | object | {} | |
| serviceAccount.automountServiceAccountToken | bool | false | |
| serviceAccount.create | bool | true | |
| serviceAccount.name | string | "" | |
| sidecars | list | [] | |
| startupProbe.enabled | bool | true | |
| startupProbe.failureThreshold | int | 30 | |
| startupProbe.initialDelaySeconds | int | 60 | |
| startupProbe.periodSeconds | int | 10 | |
| startupProbe.successThreshold | int | 1 | |
| startupProbe.timeoutSeconds | int | 10 | |
| tolerations | list | [] |
Maintainers
| Name | Url | |
|---|---|---|
| kubelauncher | [email protected] | https://www.kubelauncher.com |
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 v0.1.32 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