aerospike-backup-service

by Aerospike

Helm chartv3.0.1App v3.7.1Verified publisher

A Helm chart for Aerospike Backup Service

About this chart

Aerospike Backup Service

This Helm chart runs the official Aerospike Backup Service (ABS) Docker image on a Kubernetes cluster. It creates a Deployment, a Service, a ServiceAccount, a ConfigMap holding the service configuration, and optionally an Ingress. It runs one pod per release; see One pod per release.

For the service itself, see the Aerospike Backup Service documentation on aerospike.com. The project docs on GitHub include the reference for every configuration field.

Prerequisites

  • Kubernetes 1.23 or later.
  • Helm v3 or later.
  • An Aerospike cluster reachable from the pods. It can run in the same Kubernetes cluster using the Aerospike Kubernetes Operator.

Versions

ChartAerospike Backup Service (appVersion, default image.tag)
3.0.13.7.1
2.1.03.7.0
2.0.123.6.2
2.0.113.6.1
2.0.133.5.1
2.0.93.5.0
2.0.83.4.0
2.0.73.3.1
2.0.63.3.0
2.0.53.2.0
2.0.43.1.0

From ABS 3.7.0, the chart minor version advances once per ABS minor line and the chart patch version matches the ABS patch version. To pin an install, pass --version <chart version> to helm install and helm upgrade.

Adding the helm chart repository

The chart is published to Aerospike's JFrog Artifactory, in the public database-helm-prod-public-local repository. Add it as the aerospike Helm repository if not already done:

helm repo add aerospike https://aerospike.jfrog.io/artifactory/api/helm/database-helm-prod-public-local
helm repo update
helm search repo aerospike/aerospike-backup-service --versions

The repository serves chart 2.1.0 and later.

Quick start

Create a values file, for example abs-values.yaml. The backupServiceConfig key holds the ABS configuration file; the rest configures Kubernetes. This example backs up namespace test to S3 every night and reads the Aerospike password from a Kubernetes Secret:

backupServiceConfig:
  aerospike-clusters:
    main:
      seed-nodes:
        - host-name: aerocluster.aerospike.svc.cluster.local
          port: 3000
      credentials:
        user: backup
        password-path: /etc/abs-secrets/aerospike-password
  storage:
    s3:
      s3-storage:
        bucket: my-backup-bucket
        s3-region: us-east-1
        path: abs
  backup-policies:
    keep-week:
      retention:
        full: 7
  backup-routines:
    nightly:
      source-cluster: main
      storage: s3
      backup-policy: keep-week
      interval-cron: "@daily"
      incr-interval-cron: "@hourly"
      namespaces: [ "test" ]

volumes:
  - name: aerospike-password
    secret:
      secretName: abs-aerospike
extraSecretVolumeMounts:
  - name: aerospike-password
    mountPath: /etc/abs-secrets/aerospike-password
    subPath: password

S3 credentials for this example come from the default AWS chain; see Cloud storage credentials.

Create the namespace and the Secret, then install:

kubectl create namespace aerospike
kubectl -n aerospike create secret generic abs-aerospike --from-literal=password='<aerospike password>'

# helm install --namespace <target namespace> <release name> -f <values file> aerospike/aerospike-backup-service
helm install abs aerospike/aerospike-backup-service \
  --namespace aerospike \
  --values abs-values.yaml \
  --wait

Here abs is the release name. Resources are named <release name>-aerospike-backup-service (here abs-aerospike-backup-service) unless the release name already contains the chart name, or you set nameOverride or fullnameOverride.

On success, Helm prints the release status and the chart notes, which show how to reach the API:

NAME: abs
NAMESPACE: aerospike
STATUS: deployed
REVISION: 1
NOTES:
1. Get the application URL by running these commands:
  export POD_NAME=$(kubectl get pods --namespace aerospike -l "app.kubernetes.io/name=aerospike-backup-service,app.kubernetes.io/instance=abs" -o jsonpath="{.items[0].metadata.name}")
  ...

To check the release, run helm test abs -n aerospike. It starts a short-lived pod that requests the health endpoint through the Service.

Configuration

ParameterDescriptionDefault
replicaCountNumber of ABS pods: 1, or 0 to stop the service. Values above 1 fail the install; see One pod per release.1
imageABS image repository, tag and pullPolicy. tag falls back to the chart appVersion when empty.aerospike/aerospike-backup-service:3.7.1, Always
imagePullSecretsSecrets for pulling from a private registry.[]
nameOverrideReplaces the chart name in resource names and the app.kubernetes.io/name label.""
fullnameOverrideReplaces the full resource name.""
utilityImageImage used by the config-injector init container (when configmap.create is false) and by the helm test pod. Needs /bin/sh, base64 and wget.busybox:1.37.0, IfNotPresent
configmap.createHow backupServiceConfig reaches the pod. See Configuration source.true
argsABS command-line arguments. Empty means -c /etc/aerospike-backup-service/aerospike-backup-service.yml. A non-empty list replaces that default, so include -c yourself. Add -r to treat the mounted file as a remote configuration pointer. Chart 2.1.0 and earlier ignored this value; see Upgrading from chart 2.1.0.[]
envExtra container environment variables, for example valueFrom.secretKeyRef.[]
envFromImport all keys of a ConfigMap or Secret as environment variables.[]
backupServiceConfigABS configuration, written to /etc/aerospike-backup-service/aerospike-backup-service.yml. Unknown keys fail startup. See the commented reference in values.yaml and the field reference.{}
initContainersExtra init containers, run after config-injector.[]
serviceAccountcreate, name and annotations (for IRSA or Workload Identity). automount sets the field on the ServiceAccount object only: the pod always sets automountServiceAccountToken: false.create: true, automount: false
podAnnotationsExtra pod annotations.{}
podLabelsExtra pod labels.{}
podSecurityContextPod security context.runAsNonRoot: true, fsGroup: 65532, seccomp RuntimeDefault
securityContextContainer security context. Hardened: non-root uid/gid 65532, readOnlyRootFilesystem, no privilege escalation, all capabilities dropped, seccomp RuntimeDefault.see values.yaml
service.typeKubernetes Service type.ClusterIP
service.portService port for HTTP. The Service forwards to the container port named http, which the chart takes from backupServiceConfig.service.http.port (default 8080). See Ports, context path and probes.8080
service.httpsPortService port for HTTPS. The chart adds the https container and Service ports whenever backupServiceConfig.service.https is enabled; this only changes the Service port. See HTTPS.the HTTPS container port (8443 by default)
ingressOptional Ingress: enabled, className, annotations, hosts[].paths[], tls.enabled: false
resourcesContainer requests and limits.{}
livenessProbeLiveness probe. Without a handler of your own (httpGet, tcpSocket, exec, grpc), the chart adds httpGet on <context-path>health, port http.delay 15s, period 10s
readinessProbeReadiness probe. Without a handler of your own, the chart adds httpGet on <context-path>ready, port http.delay 15s, period 10s
terminationGracePeriodSecondsTime the pod gets to stop before it is killed. Longer than the 30 second

Deploy aerospike-backup-service with OpenTenant

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