Skip to content

fix(deploy): persist Aerospike data to a PVC (#98)#127

Merged
galt-tr merged 1 commit into
mainfrom
fix/issue-98-aerospike-persistent-storage
May 3, 2026
Merged

fix(deploy): persist Aerospike data to a PVC (#98)#127
galt-tr merged 1 commit into
mainfrom
fix/issue-98-aerospike-persistent-storage

Conversation

@galt-tr
Copy link
Copy Markdown
Contributor

@galt-tr galt-tr commented May 3, 2026

Summary

  • Switch the arcade Aerospike namespace from storage-engine memory to a file-backed storage-engine device at /opt/aerospike/data/arcade.dat (filesize 8G, data-in-memory false) so data is no longer lost on pod restart.
  • Add a volumeClaimTemplates entry (aerospike-data, 10Gi, ReadWriteOnce) to the StatefulSet and mount it at /opt/aerospike/data so each pod has durable per-replica storage.

Test plan

  • yamllint deploy/aerospike.yaml (only the pre-existing document-start warning remains)
  • kubectl apply --dry-run=server -f deploy/aerospike.yaml in a cluster with a default StorageClass
  • Apply, write a record, delete the pod, confirm the record survives the restart
  • Confirm the PVC is created and bound (kubectl get pvc -n arcade)

Closes #98

Aerospike's StatefulSet used `storage-engine memory` with no PVC, so any
pod restart wiped all data. Switch the arcade namespace to a file-backed
device (/opt/aerospike/data/arcade.dat, 8G) and mount a per-pod PVC via
volumeClaimTemplates (10Gi, ReadWriteOnce) so data survives restarts.

Closes #98
@galt-tr galt-tr requested a review from mrz1836 as a code owner May 3, 2026 13:50
@github-actions github-actions Bot added bug-P3 Lowest rated bug, affects nearly none or low-impact size/S Small change (11–50 lines) labels May 3, 2026
@galt-tr galt-tr merged commit 78d40ea into main May 3, 2026
45 checks passed
@galt-tr galt-tr deleted the fix/issue-98-aerospike-persistent-storage branch May 3, 2026 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug-P3 Lowest rated bug, affects nearly none or low-impact size/S Small change (11–50 lines)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[F-040] Aerospike Kubernetes manifest stores runtime data only in memory

2 participants