cassandra
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 install <helm-repo>/cassandra
$ helm install bitnami/cassandra
Introduction
This chart bootstraps a 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.8+
- PV provisioner support in the underlying infrastructure
Installing the Chart
To install the chart with the release name my-release:
$ helm install --name my-release <helm-repo>/cassandra
$ helm install --name my-release bitnami/cassandra The command deploys one node with Cassandra on the Kubernetes cluster in the default configuration. The configuration 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.
Configuration
The following tables 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) |
image.registry | Cassandra Image registry | docker.io |
image.repository | Cassandra Image name | bitnami/cassandra |
image.tag | Cassandra Image tag | {VERSION} |
image.pullPolicy | Image pull policy | Always |
image.pullSecrets | Specify docker-registry secret names as an array | [] (does not add image pull secrets to deployed pods) |
service.type | Kubernetes Service type | ClusterIP |
service.nodePort | Kubernetes Service nodePort | nil |
service.loadBalancerIP | LoadBalancerIP if service type is LoadBalancer | nil |
service.annotations | Annotations for the service | {} |
persistence.enabled | Use PVCs to persist data | true |
persistence.storageClass | Persistent Volume Storage Class | generic |
persistence.annotations | Persistent Volume Claim annotations Annotations | {} |
persistence.accessModes | Persistent Volume Access Modes | [ReadWriteOnce] |
persistence.size | Persistent Volume Size | 8Gi |
tlsEncryptionSecretName | Secret with keystore, keystore password, truststore and truststore password | {} |
resources | CPU/Memory resource requests/limits | {} |
existingConfiguration | Pointer to a configMap that contains custom Cassandra configuration files. This will override any Cassandra configuration variable set in the chart | {} |
cluster.name | Cassandra cluster name | cassandra |
cluster.replicaCount | Number of Cassandra nodes | 1 |
cluster.seedCount | Number of seed nodes (note: must be greater or equal than 1 and less or equal to cluster.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.minimumAvailable | Minimum nuber of instances that must be available in the cluster (used of PodDisruptionBudget) | 1 |
cluster.internodeEncryption | Set internode encryption. NOTE: A value different from 'none' requires setting tlsEncryptionSecretName | none |
cluster.clientEncryption | Set client-server encryption. NOTE: A value different from 'false' requires setting tlsEncryptionSecretName | false |
cluster.jvm.extraOpts | Set the value for Java Virtual Machine extra optinos (JVM_EXTRA_OPTS) | nil |
cluster.jvm.maxHeapSize | Set Java Virtual Machine maximum heap size (MAX_HEAP_SIZE). Calculated automatically if nil | nil |
cluster.jvm.newHeapSize | Set Java Virtual Machine new heap size (HEAP_NEWSIZE). Calculated automatically if nil | nil |
service.port | CQL Port for the Kubernetes service | 9042 |
service.thriftPort | Thrift Port for the Kubernetes service | 9160 |
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, for instance | nil |
livenessProbe.enabled | Turn on and off liveness probe | true |
livenessProbe.initialDelaySeconds | Delay before liveness probe is initiated | 30 |
livenessProbe.periodSeconds | How often to perform the probe | 30 |
livenessProbe.timeoutSeconds | When the probe times out | 5 |
livenessProbe.successThreshold | Minimum consecutive successes for the probe to be considered successful after having failed | 1 |
livenessProbe.failureThreshold | Minimum consecutive failures for the probe to be considered failed after having succeeded. | 5 |
readinessProbe.enabled | Turn on and off readiness probe | true |
readinessProbe.initialDelaySeconds | Delay before readiness probe is initiated | 5 |
readinessProbe.periodSeconds | How often to perform the probe | 10 |
readinessProbe.timeoutSeconds | When the probe times out | 5 |
readinessProbe.successThreshold | Minimum consecutive successes for the probe to be considered successful after having failed | 1 |
readinessProbe.failureThreshold | Minimum consecutive failures for the probe to be considered failed after having succeeded. | 5 |
podAnnotations | Additional pod annotations | {} |
podLabels | Additional pod labels | {} |
statefulset.updateStrategy | Update strategy for StatefulSet | onDelete |
statefulset.rollingUpdatePartition | Partition update strategy | nil |
securityContext.enabled | Enable security context | true |
securityContext.fsGroup | Group ID for the container | 1001 |
| `securityContext. |
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 v2.3.3 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