Skip to main content
Loading
Version: Operator 3.4.0

Configuration Settings for an Aerospike Restore on Kubernetes

Overviewโ€‹

Aerospike Restore (AR) configuration settings are in the AR Custom Resource (CR) file. The Aerospike Kubernetes Operator (AKO) reads this file to trigger a restore.

The AerospikeRestore Custom Resource Definition (CRD) specifies the CR structure that the Operator uses to configure and perform a restore.

CR examplesโ€‹

CR examples are available in the main Aerospike Kubernetes Operator repository.

Example 1: Full restore CR with local storageโ€‹

This example triggers a full restore in an Aerospike cluster.

Example 1
apiVersion: asdb.aerospike.com/v1beta1
kind: AerospikeRestore
metadata:
name: aerospikerestore
namespace: aerospike
spec:
backupService:
name: aerospikebackupservice
namespace: aerospike
type: Full
config:
destination:
label: destinationCluster
credentials:
password: admin123
user: admin
seed-nodes:
- host-name: aerocluster.test.svc.cluster.local
port: 3000
policy:
parallel: 3
no-generation: true
no-indexes: true
source:
path: "/path/to/full-backup/data/"
type: local

Example 2: Incremental restore CR with local storageโ€‹

This example triggers an Incremental restore in an Aerospike cluster.

Example 2
apiVersion: asdb.aerospike.com/v1beta1
kind: AerospikeRestore
metadata:
name: aerospikerestore
namespace: aerospike
spec:
backupService:
name: aerospikebackupservice
namespace: aerospike
type: Incremental
config:
destination:
label: destinationCluster
credentials:
password: admin123
user: admin
seed-nodes:
- host-name: aerocluster.test.svc.cluster.local
port: 3000
policy:
parallel: 3
no-generation: true
no-indexes: true
source:
path: "/path/to/incremental-backup/data/"
type: local

Example 3: Timestamp restore CR with local storageโ€‹

This example triggers a restore in an Aerospike cluster based on Timestamp.

Example 3
apiVersion: asdb.aerospike.com/v1beta1
kind: AerospikeRestore
metadata:
name: aerospikerestore
namespace: aerospike
spec:
backupService:
name: aerospikebackupservice
namespace: aerospike
type: Timestamp
config:
destination:
label: destinationCluster
credentials:
password: admin123
user: admin
seed-nodes:
- host-name: aerocluster.test.svc.cluster.local
port: 3000
policy:
parallel: 3
no-generation: true
no-indexes: true
routine: aerospike-aerospikebackup-test-routine
time: 1739538000000

Example 4: Full restore CR with S3 storageโ€‹

This example triggers a full restore in an Aerospike cluster.

Example 4
apiVersion: asdb.aerospike.com/v1beta1
kind: AerospikeRestore
metadata:
name: aerospikerestore
namespace: aerospike
spec:
backupService:
name: aerospikebackupservice
namespace: aerospike
type: Full
config:
destination:
label: destinationCluster
credentials:
password: admin123
user: admin
seed-nodes:
- host-name: aerocluster.test.svc.cluster.local
port: 3000
policy:
parallel: 3
no-generation: true
no-indexes: true
source:
path: "s3://test-bucket/aerospike-aerospikebackup-test-routine1/backup/1731431574853/data/test"
s3-region: us-east-1
s3-endpoint-override: ""
s3-profile: default
type: aws-s3
note

For IAM roles for Service Accounts (IRSA)-based S3 access, set s3-profile to an empty string "".

Configurationโ€‹

The initial part of the CR file selects the CRD and the namespace to use for the AR.

apiVersion: asdb.aerospike.com/v1beta1
kind: AerospikeRestore
metadata:
name: aerospikerestore
namespace: aerospike

The rest of this page explains the parameters in the subsequent parts of the CR file.

Specโ€‹

The spec section defines the restore's configurations.

FieldRequiredTypeDefaultDescription
backupServiceYesStructureAerospike backup service reference.
typeYesStringType of restore. Supported types are Full, Incremental, Timestamp
configYesStructureAerospike restore configuration in freeform YAML format.
pollingPeriodNoSting60sPolling period to check restore operation status.

Backup Serviceโ€‹

spec -> backupService

Configure the Aerospike backup service to be used for triggering restores.

FieldRequiredTypeDescription
nameYesStringName of the backup service.
namespaceYesStringNamespace of the backup service.

Configโ€‹

spec -> config

The YAML form of AR configuration.

The following fields can be defined in the AR configuration based on the restore type:

  1. destination
  2. policy
  3. source
  4. secret-agent
  5. routine
  6. time

Example:

config:
destination:
label: destinationCluster
credentials:
password: admin123
user: admin
seed-nodes:
- host-name: aerocluster.test.svc.cluster.local
port: 3000
policy:
parallel: 3
no-generation: true
no-indexes: true
routine: aerospike-aerospikebackup-test-routine
time: 1739538000000

See the AR Configuration for more details.