aerospike-backup-service
by Aerospike
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
| Chart | Aerospike Backup Service (appVersion, default image.tag) |
|---|---|
| 3.0.1 | 3.7.1 |
| 2.1.0 | 3.7.0 |
| 2.0.12 | 3.6.2 |
| 2.0.11 | 3.6.1 |
| 2.0.13 | 3.5.1 |
| 2.0.9 | 3.5.0 |
| 2.0.8 | 3.4.0 |
| 2.0.7 | 3.3.1 |
| 2.0.6 | 3.3.0 |
| 2.0.5 | 3.2.0 |
| 2.0.4 | 3.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
| Parameter | Description | Default |
|---|---|---|
replicaCount | Number of ABS pods: 1, or 0 to stop the service. Values above 1 fail the install; see One pod per release. | 1 |
image | ABS image repository, tag and pullPolicy. tag falls back to the chart appVersion when empty. | aerospike/aerospike-backup-service:3.7.1, Always |
imagePullSecrets | Secrets for pulling from a private registry. | [] |
nameOverride | Replaces the chart name in resource names and the app.kubernetes.io/name label. | "" |
fullnameOverride | Replaces the full resource name. | "" |
utilityImage | Image 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.create | How backupServiceConfig reaches the pod. See Configuration source. | true |
args | ABS 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. | [] |
env | Extra container environment variables, for example valueFrom.secretKeyRef. | [] |
envFrom | Import all keys of a ConfigMap or Secret as environment variables. | [] |
backupServiceConfig | ABS 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. | {} |
initContainers | Extra init containers, run after config-injector. | [] |
serviceAccount | create, 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 |
podAnnotations | Extra pod annotations. | {} |
podLabels | Extra pod labels. | {} |
podSecurityContext | Pod security context. | runAsNonRoot: true, fsGroup: 65532, seccomp RuntimeDefault |
securityContext | Container security context. Hardened: non-root uid/gid 65532, readOnlyRootFilesystem, no privilege escalation, all capabilities dropped, seccomp RuntimeDefault. | see values.yaml |
service.type | Kubernetes Service type. | ClusterIP |
service.port | Service 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.httpsPort | Service 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) |
ingress | Optional Ingress: enabled, className, annotations, hosts[].paths[], tls. | enabled: false |
resources | Container requests and limits. | {} |
livenessProbe | Liveness 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 |
readinessProbe | Readiness probe. Without a handler of your own, the chart adds httpGet on <context-path>ready, port http. | delay 15s, period 10s |
terminationGracePeriodSeconds | Time 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartaerospike-backup-service is pinned at v3.0.1 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