cassandra
by [riftbit]
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
Global parameters
| Name | Description | Value |
|---|---|---|
global.imageRegistry | Global Docker image registry | "" |
global.imagePullSecrets | Global Docker registry secret names as an array | [] |
global.storageClass | Global StorageClass for Persistent Volume(s) | "" |
Common parameters
| Name | Description | Value |
|---|---|---|
nameOverride | String to partially override common.names.fullname | "" |
fullnameOverride | String to fully override common.names.fullname | "" |
commonLabels | Labels to add to all deployed objects (sub-charts are not considered) | {} |
commonAnnotations | Annotations to add to all deployed objects | {} |
clusterDomain | Kubernetes cluster domain name | cluster.local |
extraDeploy | Array of extra objects to deploy with the release | [] |
diagnosticMode.enabled | Enable diagnostic mode (all probes will be disabled and the command will be overridden) | false |
diagnosticMode.command | Command to override all containers in the deployment | ["sleep"] |
diagnosticMode.args | Args to override all containers in the deployment | ["infinity"] |
Cassandra parameters
| Name | Description | Value |
|---|---|---|
image.registry | Cassandra image registry | docker.io |
image.repository | Cassandra image repository | bitnami/cassandra |
image.tag | Cassandra image tag (immutable tags are recommended) | 4.0.1-debian-10-r0 |
image.pullPolicy | image pull policy | IfNotPresent |
image.pullSecrets | Cassandra image pull secrets | [] |
image.debug | Enable image debug mode | false |
dbUser.user | Cassandra admin user | cassandra |
dbUser.forcePassword | Force the user to provide a non | false |
dbUser.password | Password for dbUser.user. Randomly generated if empty | "" |
dbUser.existingSecret | Use an existing secret object for dbUser.user password (will ignore dbUser.password) | "" |
initDBConfigMap | ConfigMap with cql scripts. Useful for creating a keyspace and pre-populating data | "" |
initDBSecret | Secret with cql script (with sensitive data). Useful for creating a keyspace and pre-populating data | "" |
existingConfiguration | ConfigMap with custom cassandra configuration files. This overrides any other Cassandra configuration set in the chart | "" |
cluster.name | Cassandra cluster name | cassandra |
cluster.seedCount | Number of seed nodes | 1 |
cluster.numTokens | Number of tokens for each node | 256 |
cluster.datacenter | Datacenter name | dc1 |
cluster.rack | Rack name | rack1 |
cluster.endpointSnitch | Endpoint Snitch | SimpleSnitch |
cluster.internodeEncryption | DEPRECATED: use tls.internode and tls.client instead. Encryption values. | none |
cluster.clientEncryption | Client Encryption | false |
cluster.extraSeeds | For an external/second cassandra ring. | [] |
jvm.extraOpts | Set the value for Java Virtual Machine extra options | "" |
jvm.maxHeapSize | Set Java Virtual Machine maximum heap size (MAX_HEAP_SIZE). Calculated automatically if nil | "" |
jvm.newHeapSize | Set Java Virtual Machine new heap size (HEAP_NEWSIZE). Calculated automatically if nil | "" |
command | Command for running the container (set to default if not set). Use array form | [] |
args | Args for running the container (set to default if not set). Use array form | [] |
extraEnvVars | Extra environment variables to be set on cassandra container | [] |
extraEnvVarsCM | Name of existing ConfigMap containing extra env vars | "" |
extraEnvVarsSecret | Name of existing Secret containing extra env vars | "" |
Statefulset parameters
| Name | Description | Value |
|---|---|---|
replicaCount | Number of Cassandra replicas | 1 |
updateStrategy | updateStrategy for Cassandra statefulset | RollingUpdate |
hostAliases | Add deployment host aliases | [] |
rollingUpdatePartition | Partition update strategy | "" |
podManagementPolicy | StatefulSet pod management policy | OrderedReady |
priorityClassName | Cassandra pods' priority. | "" |
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 | {} |
nodeSelector | Node labels for pod assignment | {} |
tolerations | Tolerations for pod assignment | [] |
topologySpreadConstraints | Topology Spread Constraints for pod assignment | [] |
podSecurityContext.enabled | Enabled Cassandra pods' Security Context | true |
podSecurityContext.fsGroup | Set Cassandra pod's Security Context fsGroup | 1001 |
containerSecurityContext.enabled | Enabled Cassandra containers' Security Context | true |
containerSecurityContext.runAsUser | et Cassandra container's Security Context runAsUser | 1001 |
resources.limits | The resources limits for Cassandra containers | {} |
resources.requests | The requested resources for Cassandra containers | {} |
livenessProbe.enabled | Enable livenessProbe | true |
livenessProbe.initialDelaySeconds | Initial delay seconds for livenessProbe | 60 |
livenessProbe.periodSeconds | Period seconds for livenessProbe | 30 |
livenessProbe.timeoutSeconds | Timeout seconds for livenessProbe | 5 |
livenessProbe.failureThreshold | Failure threshold for livenessProbe | 5 |
| `livenessProbe.s |
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 v8.0.4 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