Skip to main content
Loading
Version: Operator 2.1.0

Upgrade Aerospike cluster to version 6.0

When upgrading from 5.x or less to 6.0, the Operator wipes each namespace storage Block volumes and removes namespace storage files in case of Filesystem volumes. PMEM storage volumes are not wiped.

For more details see Special Upgrades.

See WipeMethod configuration for details.

caution

When using blkdiscard as the wipe method you need to be sure that the drive deterministically returns zeros after TRIM (RZAT). Check with your hardware provider or cloud provider to determine if this is the case. If you are unsure, it is safer to wipe the device using dd as the wipe method.

In order to upgrade the cluster to 6.0.0.1 change the spec.image field to use 6.0.0.1 Aerospike image. The following example shows an upgrade using blkdscard wipe method.

apiVersion: asdb.aerospike.com/v1beta1
kind: AerospikeCluster
metadata:
name: aerocluster
namespace: aerospike
spec:
size: 2
image: aerospike/aerospike-server-enterprise:6.0.0.1
storage:
filesystemVolumePolicy:
cascadeDelete: true
initMethod: deleteFiles
blockVolumePolicy:
cascadeDelete: true
wipeMethod: blkdiscard
volumes:
- name: workdir
aerospike:
path: /opt/aerospike
source:
persistentVolume:
storageClass: ssd
volumeMode: Filesystem
size: 1Gi
- name: nsvol1
aerospike:
path: /dev/sdb
source:
persistentVolume:
storageClass: ssd
volumeMode: Block
size: 3Gi
- name: aerospike-config-secret
source:
secret:
secretName: aerospike-secret
aerospike:
path: /etc/aerospike/secret
podSpec:
multiPodPerHost: true
aerospikeAccessControl:
users:
- name: admin
secretName: auth-secret
roles:
- sys-admin
- user-admin
aerospikeConfig:
service:
feature-key-file: /etc/aerospike/secret/features.conf
security: {}
network:
service:
port: 3000
fabric:
port: 3001
heartbeat:
port: 3002
namespaces:
- name: test
memory-size: 3000000000
replication-factor: 2
storage-engine:
type: device
devices:
- /dev/sdb