aerospike

by joaquinito2051

Helm chartv0.2.7App v4.5.0.5

A Helm chart for Aerospike in Kubernetes

About this chart

Aerospike Helm Chart

This is an implementation of Aerospike StatefulSet found here:

Pre Requisites

  • Kubernetes 1.7+ with beta APIs enabled and support for statefulsets

  • PV support on underlying infrastructure (only if you are provisioning persistent volume).

  • Requires at least v2.5.0 version of helm to support

StatefulSet Details

StatefulSet Caveats

Chart Details

This chart will do the following:

  • Implement a dynamically scalable Aerospike cluster using Kubernetes StatefulSets

Installing the Chart

To install the chart with the release name my-aerospike using a dedicated namespace(recommended):

helm install --name my-aerospike --namespace aerospike <helm-repo>/aerospike

helm install --name my-aerospike --namespace aerospike stable/aerospike The chart can be customized using the following configurable parameters:

ParameterDescriptionDefault
image.repositoryAerospike Container image nameaerospike/aerospike-server
image.tagAerospike Container image tag4.5.0.5
image.pullPolicyAerospike Container pull policyAlways
replicaCountAerospike Brokers1
commandCustom command (Docker Entrypoint)[]
argsCustom args (Docker Cmd)[]
tolerationsList of node taints to tolerate[]
persistentVolumeConfig of persistent volumes for storage-engine{}
confFileConfig filename. This file should be included in the chart pathaerospike.conf
resourcesResource requests and limits{}
nodeSelectorLabels for pod assignment{}
terminationGracePeriodSecondsWait time before forcefully terminating container30

Specify parameters using --set key=value[,key=value] argument to helm install

Alternatively a YAML file that specifies the values for the parameters can be provided like this: Specify parameters using --set key=value[,key=value] argument to helm install

helm install --name my-aerospike -f values.yaml <helm-repo>/aerospike

helm install --name my-aerospike -f values.yaml stable/aerospike

Conf files for Aerospike

There is one conf file added to each Aerospike release. This conf file can be replaced with a custom file and updating the confFile value.

If you modify the aerospike.conf (and you use more than 1 replica), you want to add the #REPLACE_THIS_LINE_WITH_MESH_CONFIG comment to the config file (see the default conf file). This will update your mesh to connect each replica.

Known Limitations

  • Persistent volume claims tested only on GCP
  • Aerospike cluster is not accessible via an external endpoint

Deploy aerospike with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has aerospike 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 chartaerospike is pinned at v0.2.7 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