cassandra

by 4ops

Helm chartv0.1.4App 3.11.9Verified publisher

The Apache Cassandra database is the right choice when you need scalability and high availability without compromising performance

About this chart

cassandra

The Apache Cassandra database is the right choice when you need scalability and high availability without compromising performance

Installing the Chart

To install the chart with the release name my-release:

$ helm repo add kube-ops https://charts.kube-ops.io
$ helm repo update
$ helm upgrade my-release kube-ops/cassandra --install --namespace my-namespace --create-namespace --wait

Uninstalling the Chart

To uninstall the chart:

$ helm uninstall my-release --namespace my-namespace

Values

KeyTypeDefaultDescription
affinityobject{}Affinity for pod assignment ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
clusterDomainstring"cluster.local"
clusterNamestring"Cassandra Cluster"Cluster name
dcstring"dc1"
deploymentTypestring"StatefulSet"
dnsConfigobject{}DNS configuration for all replicas
dnsPolicystring""
extraArgslist[]Additional arguments
extraEnvVarslist[]Additional environment variables
extraVolumeMountslist[]Additional mounts for application
extraVolumeslist[]Additional volumes for application
fullnameOverridestring""Overrides the full name
global.imagePullPolicystring"IfNotPresent"Image download policy ref: https://kubernetes.io/docs/concepts/containers/images/#updating-images
global.imagePullSecretslist[]List of the Docker registry credentials ref: https://kubernetes.io/docs/concepts/containers/images/#updating-images
hostAliaseslist[]Adding entries to Pod /etc/hosts with HostAliases ref: https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
image.repositorystring"docker.io/library/cassandra"Overrides the image repository
image.tagstring""Overrides the image tag whose default is the chart appVersion.
initContainerslist[]
jvmOptions[0]string"-ea"
jvmOptions[10]string"-XX:+UseNUMA"
jvmOptions[11]string"-XX:+PerfDisableSharedMem"
jvmOptions[12]string"-Djava.net.preferIPv4Stack=true"
jvmOptions[13]string"-XX:+UseParNewGC"
jvmOptions[14]string"-XX:+UseConcMarkSweepGC"
jvmOptions[15]string"-XX:+CMSParallelRemarkEnabled"
jvmOptions[16]string"-XX:SurvivorRatio=8"
jvmOptions[17]string"-XX:MaxTenuringThreshold=1"
jvmOptions[18]string"-XX:CMSInitiatingOccupancyFraction=75"
jvmOptions[19]string"-XX:+UseCMSInitiatingOccupancyOnly"
jvmOptions[1]string"-XX:+UseThreadPriorities"
jvmOptions[20]string"-XX:CMSWaitDuration=10000"
jvmOptions[21]string"-XX:+CMSParallelInitialMarkEnabled"
jvmOptions[22]string"-XX:+CMSEdenChunksRecordAlways"
jvmOptions[23]string"-XX:+CMSClassUnloadingEnabled"
jvmOptions[24]string"-XX:+PrintGCDetails"
jvmOptions[25]string"-XX:+PrintGCDateStamps"
jvmOptions[26]string"-XX:+PrintHeapAtGC"
jvmOptions[27]string"-XX:+PrintTenuringDistribution"
jvmOptions[28]string"-XX:+PrintGCApplicationStoppedTime"
jvmOptions[29]string"-XX:+PrintPromotionFailure"
jvmOptions[2]string"-XX:ThreadPriorityPolicy=42"
jvmOptions[30]string"-XX:+UseGCLogFileRotation"
jvmOptions[31]string"-XX:NumberOfGCLogFiles=10"
jvmOptions[32]string"-XX:GCLogFileSize=10M"
jvmOptions[3]string"-XX:+HeapDumpOnOutOfMemoryError"
jvmOptions[4]string"-Xss256k"
jvmOptions[5]string"-XX:StringTableSize=1000003"
jvmOptions[6]string"-XX:+AlwaysPreTouch"
jvmOptions[7]string"-XX:-UseBiasedLocking"
jvmOptions[8]string"-XX:+UseTLAB"
jvmOptions[9]string"-XX:+ResizeTLAB"
livenessProbeobject{}
metrics.enabledboolfalse
metrics.portint9100
metrics.serviceMonitor.additionalLabelsobject{}
metrics.serviceMonitor.enabledboolfalse
metrics.serviceMonitor.intervalstring"30s"
metrics.serviceMonitor.namespacestring"monitoring"
nameOverridestring""Overrides the chart name
nativeTransportPortint9042
nodeSelectorobject{}
pdb.enabledboolfalseSpecifies whether a pod disruption budget should be created
persistence.accessModes[0]string"ReadWriteOnce"
persistence.enabledboolfalse
persistence.fixPermissionsboolfalse
persistence.sizestring"8Gi"
persistence.storageClassNamestring""
persistence.volumeModestring"Filesystem"
podAnnotationsobject{}
podLabelsobject{}
podManagementPolicystring"OrderedReady"
podSecurityContextobject{"fsGroup":999}Pod security settings
podSecurityPolicy.annotationsobject{}
podSecurityPolicy.createbooltrueSpecifies whether a pod security policy should be created
podSecurityPolicy.enabledbooltrueSpecifies whether a pod security policy should be enabled
podSecurityPolicy.namestring""The name of the pod security policy to use. If not set and create is true, a name is generated using the fullname template
preStopHookobject{}
priorityint0
priorityClassNamestring""Overrides default priority class ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
rackstring"rack1"
rbac.createbooltrueSpecifies whether a cluster role should be created
rbac.namestring""The name of the cluster role to use. If not set and create is true, a name is generated using the fullname template
readinessProbeobject{}
replicaCountint1Replicas count
resources.limits.cpuint2
resources.limits.memorystring"12Gi"
resources.requests.cpuint1
resources.requests.memorystring"8Gi"
rpcPortint9160
runtimeClassNamestring""Overrides default runtime class
schedulerNamestring""
securityContextobject{"readOnlyRootFilesystem":false,"runAsUser":999}Contaier security settings
seedCountint1
service.annotationsobject{}Annotations for Service resource
service.clusterIPstring""Exposes the Service on a cluster IP ref: https://kubernetes.io/docs/concepts/services-networking/service/#choosing-your-own-ip-address
service.externalTrafficPolicystring"Cluster"If you set service.spec.externalTrafficPolicy to the value Local, kube-proxy only proxies proxy requests to local endpoints, and does not forward traffic to other nodes. This approach preserves the original source IP address. If there are no local endpoints, packets sent to the node are dropped, so you can rely on the correct source-ip in any packet processing rules you might apply a packet that make it through to the endpoint. ref: https://kubernetes.io/docs/tutorials/services/source-ip/#source-ip-for-services-with-type-nodeport
service.ipFamilystring""Address family for the Service's cluster IP (IPv4 or IPv6) ref: https://kubernetes.io/docs/concepts/services-networking/dual-stack/
service.nativeTransportNodePortint30042
service.nativeTransportPortint9042
service.rpcNodePortint30160
service.rpcPortint9160
service.storageNodePortint30170
service.storageNodePortSslint30171
service.storagePortint7000
service.storagePortSslint7001
service.topologyboolfalseenables a service to route traffic based upon the Node topology of the cluster ref: https://kubernetes.io/docs/concepts/services-networking/service-topology/#using-service-topology Kubernetes >= kubeVersion 1.18
service.topologyKeyslist[]
service.typestring"ClusterIP"Kubernetes ServiceTypes allow you to specify what kind of Service you want ref: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types
serviceAccount.annotationsobject{}Annotations to add to the service account
serviceAccount.createbooltrueSpecifies whether a service account should be created
serviceAccount.namestring""The name of the service account to use. If not set and create is true, a name is generated using the fullname template
startupProbeobject{}
storagePortint7000
storagePortSslint7001
terminationGracePeriodSecondsint30Grace period before the Pod is allowed to be forcefully killed ref: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/
tolerationslist[]
updateStrategyobject{}

Requirements

RepositoryNameVersion
https://charts.kube-ops.iogenerate~0.2.3

Autogenerated from chart metadata using helm-docs v1.4.0

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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartcassandra is pinned at v0.1.4 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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