Configuration Settings for an Aerospike Restore on Kubernetes
Overview
Aerospike Restore (AR) configuration settings are in the AR Custom Resource (CR). The Aerospike Kubernetes Operator (AKO) monitors this file to trigger a restore.
The AerospikeRestore Custom Resource Definition (CRD) specifies the CR structure that AKO 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/v1beta1kind: AerospikeRestoremetadata: name: aerospikerestore namespace: aerospikespec: 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: local-storage: path: /localStorage backup-data-path: "/path/to/full-backup/data/"
Example 2: Incremental restore CR with local storage
This example triggers an Incremental restore in an Aerospike cluster.
Example 2
apiVersion: asdb.aerospike.com/v1beta1kind: AerospikeRestoremetadata: name: aerospikerestore namespace: aerospikespec: 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: local-storage: path: /localStorage backup-data-path: "/path/to/incremental-backup/data/"
Example 3: Timestamp restore CR
This example triggers a restore in an Aerospike cluster based on Timestamp.
Example 3
apiVersion: asdb.aerospike.com/v1beta1kind: AerospikeRestoremetadata: name: aerospikerestore namespace: aerospikespec: 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/v1beta1kind: AerospikeRestoremetadata: name: aerospikerestore namespace: aerospikespec: 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: s3-storage: bucket: test-bucket s3-region: us-east-1 s3-profile: default backup-data-path: "/path/to/full-backup/data/"
Configuration
The initial part of the CR file selects the CRD and the namespace to use for the AR.
apiVersion: asdb.aerospike.com/v1beta1kind: AerospikeRestoremetadata: 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.
Field | Required | Type | Default | Description |
---|---|---|---|---|
backupService | Yes | Structure | Aerospike backup service reference. | |
type | Yes | String | Type of restore. Supported types are Full, Incremental, Timestamp | |
config | Yes | Structure | Aerospike restore configuration in freeform YAML format. | |
pollingPeriod | No | Sting | 60s | Polling period to check restore operation status. |
Backup Service
spec
-> backupService
Configure the Aerospike backup service to be used for triggering restores.
Field | Required | Type | Description |
---|---|---|---|
name | Yes | String | Name of the backup service. |
namespace | Yes | String | Namespace 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:
destination
policy
source
secret-agent
backup-data-path
routine
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