Skip to main content
Loading
Version: Operator 3.4.0

Use Helm to Create an Aerospike Backup

Overview

This page describes how to use Helm to create a Custom Resource (CR) file containing the configuration parameters for the Aerospike Backup Service (ABS) to perform a backup of an Aerospike cluster on Kubernetes.

Requirements

Before creating your backup CR using Helm, deploy the ABS on your Kubernetes cluster using either:

1. Get the Helm charts

Add the Helm repository to get the Helm charts.

helm repo add aerospike https://aerospike.github.io/aerospike-kubernetes-enterprise

If the Helm repository is already added, update the index:

helm repo update

2. Create Aerospike backup

Create a custom values.yaml file with your required configurations. Here is an example of a custom user-defined values.yaml file.

## backupService is the name and namespace reference for the backup service.
## It is used to communicate to the backup service to trigger operations. This field is immutable.
backupService:
name: aerospikebackupservice-sample
namespace: aerospike

## Config is the free form configuration for the backup in YAML format.
## This config is used to trigger backups. It includes: aerospike-cluster, backup-routines
backupConfig:
aerospike-cluster:
# Name format: The name must begin with the prefix <backup-namespace>-<backup-name>
aerospike-aerospikebackup-test-cluster:
credentials:
password: admin123
user: admin
seed-nodes:
- host-name: aerocluster.aerospike.svc.cluster.local
port: 3000
backup-routines:
# Name format: The name must begin with the prefix <backup-namespace>-<backup-name>
aerospike-aerospikebackup-test-routine:
backup-policy: test-policy
interval-cron: "@daily"
incr-interval-cron: "@hourly"
namespaces: ["test"]
source-cluster: aerospike-aerospikebackup-test-cluster
storage: local

Install the chart with custom values.

helm install aerospike-backup aerospike/aerospike-backup -f CUSTOM_YAML_FILE

Configuration parameters

For more details on these parameters, see the Aerospike Backup Configuration Settings.

NameDescriptionDefault
customLabelsCustom labels to add to the AerospikeBackup resource{} (nil)
backupService.nameAerospike backup service name
backupService.namespaceAerospike backup service namespace
backupConfigAerospike backup configuration{} (nil)
onDemandBackups[*].idUnique identifier for the on-demand backup
onDemandBackups[*].routineNameRoutine name used to trigger on-demand backup
onDemandBackups[*].delayDelay interval before starting the on-demand backup