ACKO Deployment Guide
Deploy Aerospike Community Edition clusters on Kubernetes using the ACKO operator.
1. Quick Deploy: 1-Node Dev Cluster in 3 Steps
Step 1: Check Prerequisites
Run these commands to verify your environment is ready:
# Verify kubectl is connected to a cluster
kubectl cluster-info
# Verify the ACKO operator is running
kubectl get pods -n aerospike-operator -l control-plane=controller-manager
# Verify the AerospikeCluster CRD is installed
kubectl api-resources | grep aerospikeclusters
# Create the target namespace (if it does not exist)
kubectl create namespace aerospike --dry-run=client -o yaml | kubectl apply -f -
If the operator is not running, install it first:
kubectl apply -f https://raw.githubusercontent.com/aerospike-ce-ecosystem/aerospike-ce-kubernetes-operator/main/config/deploy/operator.yaml
Step 2: Apply the Minimal CR
apiVersion: acko.io/v1alpha1
kind: AerospikeCluster
metadata:
name: aerospike-basic
namespace: aerospike
spec:
size: 1
image: aerospike:ce-8.1.1.1
aerospikeConfig:
namespaces:
- name: test
replication-factor: 1
storage-engine:
type: memory
data-size: 1073741824 # 1 GiB
logging:
- name: /var/log/aerospike/aerospike.log
context: any info
Save this as aerospike-basic.yaml and apply:
kubectl apply -f aerospike-basic.yaml
Step 3: Verify Deployment
# Wait for phase=Completed (typically 30-90 seconds)
kubectl wait --for=jsonpath='{.status.phase}'=Completed asc/aerospike-basic -n aerospike --timeout=120s
# Check cluster status (should show PHASE=Completed, HEALTH=1/1)
kubectl get asc aerospike-basic -n aerospike
# Check pod status (should show 1/1 Running)
kubectl get pods -n aerospike
# Verify Aerospike is responding
kubectl exec -n aerospike aerospike-basic-0-0 -c aerospike-server -- asinfo -v status
# Expected output: ok
2. CE Constraints (Webhook-Enforced)
These constraints are enforced by the ACKO validating webhook. Violating any of them causes the CR to be rejected at apply time.
- Cluster size:
spec.size must be between 1 and 8 (inclusive).
- Namespaces: Maximum 2 namespaces in
aerospikeConfig.namespaces.
- No XDR:
aerospikeConfig must not contain an xdr section (Enterprise-only).
- No TLS:
aerospikeConfig must not contain a tls section (Enterprise-only).
- No Enterprise images:
spec.image must not contain enterprise, ee-, or ent-.
- Mesh heartbeat only:
network.heartbeat.mode must be mesh.
- Byte values as integers: All size values in
aerospikeConfig (such as data-size, filesize) must be specified as integer byte counts, not human-readable strings.
- Replication factor: Must be between 1 and 4, and must not exceed
spec.size.
- No Enterprise namespace keys: The following keys are forbidden in namespace config:
compression, compression-level, durable-delete, fast-restart, index-type, sindex-type, rack-id, strong-consistency, tomb-raider-eligible-age, tomb-raider-period.
- No Enterprise security keys: Only
enable-security and default-password-file are allowed in aerospikeConfig.security. The keys tls, ldap, log, syslog are forbidden.
- Strengthened map/list shapes (April 2026):
aerospikeConfig.service and aerospikeConfig.network must be YAML maps; aerospikeConfig.logging must be a YAML list; each namespaces[] entry must be a map with a name key. MetricLabels values are TOML-escaped — control characters are rejected. Within one update, namespace rack-id may be added OR removed but not both (prevents data loss on rename).
- Operations spec invariants:
spec.operations[].kind must be WarmRestart or PodRestart; spec.operations[].id length 1–20 chars; the operations list cannot be modified while one operation is InProgress. spec.overrides only valid when spec.templateRef is set.
3. Deployment Scenarios
Choose the scenario that matches your needs. Each links to a ready-to-use YAML example.
Scenario 1: Minimal In-Memory (Dev/Test)
- File: ./examples/01-minimal.yaml
- Use when: Quick local dev, CI tests, learning ACKO
- Key features: 1 node, in-memory storage, no persistence, no ACL
Scenario 2: 3-Node with Persistent Volume (Staging/Production Baseline)
- File: ./examples/02-3node-pv.yaml
- Use when: You need data persistence across pod restarts
- Key features: 3 nodes, PVC-backed device storage, resource limits, cascadeDelete
Scenario 3: ACL (Access Control)
- File: ./examples/03-acl.yaml
- Use when: You need authentication and role-based access control
- Key features: security stanza, admin user (sys-admin + user-admin required), K8s Secrets for passwords
Scenario 4: Prometheus Monitoring
- File: ./examples/04-monitoring.yaml
- Use when: You need metrics, dashboards, and alerting
- Key features: Exporter sidecar, ServiceMonitor, PrometheusRule, metric labels
Scenario 5: Multi-Rack (Zone-Aware Topology)
- File: ./examples/05-multirack.yaml
- Use when: You need high availability across availability zones
- Key features: 3 racks pinned to zones, rack-aware replication
Scenario 6: Advanced Storage
- File: ./examples/06-storage-advanced.yaml
- Use when: You need block devices, hostPath, CSI, local PV, or sidecar mounts
- Key features: Volume policies, block volumes, mount propagation, sidecar sharing
Scenario 7: Template-Based
- File: ./examples/07-template.yaml
- Use when: You manage multiple clusters with shared configuration
- Key features: AerospikeClusterTemplate, templateRef, overrides, resync annotation
Scenario 8: Full-Featured
- File: ./examples/08-full-featured.yaml
- Use when: Production deployment with all features enabled
- Key features: ACL + monitoring + multi-rack + PV + PDB + dynamic config
Scenario 9: On-Demand Operations (WarmRestart / PodRestart)
- File: ./examples/09-operations.yaml
- Use when: You need to manually restart pods (warm via SIGUSR1, or full pod recreate) without changing spec
- Key features:
spec.operations[] with WarmRestart (SIGUSR1) or PodRestart (delete+recreate); optional podList to target specific pods; webhook prevents modifying the operations list while one is InProgress
Monitoring sample note (04-monitoring.yaml): Recent fix — metricLabels values are TOML-escaped (double-quote-wrapped, backslash-escaped, control chars rejected) and the demo emptyDir mount points to /opt/aerospike/work instead of accidentally overlaying /opt/aerospike. If you cloned this example before April 2026, verify both.
4. CR Spec Reference
Detail: ./reference/cr-spec-fields.md
5. Webhook Auto-Settings
Webhook auto-settings and CRD field mapping: See acko-config-reference skill's reference/crd-mapping.md
6. Verification Commands
Run these after deploying or modifying a cluster.
# List all Aerospike clusters with their phase
kubectl get asc -n aerospike
# Check specific cluster phase
kubectl get asc <name> -n aerospike -o jsonpath='{.status.phase}'
# Check phase reason (useful when phase is Error or InProgress)
kubectl get asc <name> -n aerospike -o jsonpath='{.status.phaseReason}'
# Check all conditions
kubectl get asc <name> -n aerospike -o jsonpath='{.status.conditions}' | jq .
# Check pod status details
kubectl get asc <name> -n aerospike -o jsonpath='{.status.pods}' | jq .
# Check ready pod count
kubectl get asc <name> -n aerospike -o jsonpath='{.status.size}'
# Check cluster events (most recent last)
kubectl get events -n aerospike --field-selector involvedObject.name=<name> --sort-by='.lastTimestamp'
# Verify Aerospike service is responding
kubectl exec -n aerospike <pod-name> -c aerospike-server -- asinfo -v status
# Check cluster membership
kubectl exec -n aerospike <pod-name> -c aerospike-server -- asinfo -v 'statistics' | tr ';' '\n' | grep cluster_size
# Check namespace stats
kubectl exec -n aerospike <pod-name> -c aerospike-server -- asinfo -v 'namespace/<namespace-name>'
7. Byte Value Reference
Byte values: See acko-config-reference skill's reference/byte-values.md
8. CE 8.1 Configuration Notes
CE 8.1 notes: See acko-config-reference skill
9. Template Fix Notice (April 2026)
A recent operator fix re-applies the resolved template to the in-memory cluster spec after every Status().Update/Patch, so template-derived fields (PodSpec.PodAntiAffinity, Resources, Storage) now reach the StatefulSet and persist across reconciles. If you previously worked around this by inlining template values into spec.overrides, you can drop those workarounds. VolumeClaimTemplate updates remain immutable — VCTs are only set at StatefulSet creation time inside buildStatefulSet.
1---2name: acko-deploy3description: "MUST USE for deploying Aerospike on Kubernetes. Contains CE-specific YAML templates, validated AerospikeCluster CR examples, and critical constraints that prevent enterprise-only config mistakes (feature-key-file, security sections crash CE pods). Without this skill, deployments fail on first attempt due to CE 8.1 breaking changes (data-size not memory-size, no info port 3003) or webhook map/list shape rules (service/network must be maps; logging must be a list). Triggers on: deploy/create/set up Aerospike on K8s, kind, minikube, EKS, GKE; AerospikeCluster CR; ACKO operator; spec.operations / WarmRestart / PodRestart YAML; NoSQL database on Kubernetes. 9 ready-to-use YAML examples from minimal single-node to full-featured multi-rack."4metadata:5 source: https://skillmd.com/skills/aibot88/acko-deploy6---78# ACKO Deployment Guide910Deploy Aerospike Community Edition clusters on Kubernetes using the ACKO operator.1112---1314## 1. Quick Deploy: 1-Node Dev Cluster in 3 Steps1516### Step 1: Check Prerequisites1718Run these commands to verify your environment is ready:1920```bash21# Verify kubectl is connected to a cluster22kubectl cluster-info2324# Verify the ACKO operator is running25kubectl get pods -n aerospike-operator -l control-plane=controller-manager2627# Verify the AerospikeCluster CRD is installed28kubectl api-resources | grep aerospikeclusters2930# Create the target namespace (if it does not exist)31kubectl create namespace aerospike --dry-run=client -o yaml | kubectl apply -f -32```3334If the operator is not running, install it first:35```bash36kubectl apply -f https://raw.githubusercontent.com/aerospike-ce-ecosystem/aerospike-ce-kubernetes-operator/main/config/deploy/operator.yaml37```3839### Step 2: Apply the Minimal CR4041```yaml42apiVersion: acko.io/v1alpha143kind: AerospikeCluster44metadata:45 name: aerospike-basic46 namespace: aerospike47spec:48 size: 149 image: aerospike:ce-8.1.1.150 aerospikeConfig:51 namespaces:52 - name: test53 replication-factor: 154 storage-engine:55 type: memory56 data-size: 1073741824 # 1 GiB57 logging:58 - name: /var/log/aerospike/aerospike.log59 context: any info60```6162Save this as `aerospike-basic.yaml` and apply:63```bash64kubectl apply -f aerospike-basic.yaml65```6667### Step 3: Verify Deployment6869```bash70# Wait for phase=Completed (typically 30-90 seconds)71kubectl wait --for=jsonpath='{.status.phase}'=Completed asc/aerospike-basic -n aerospike --timeout=120s7273# Check cluster status (should show PHASE=Completed, HEALTH=1/1)74kubectl get asc aerospike-basic -n aerospike7576# Check pod status (should show 1/1 Running)77kubectl get pods -n aerospike7879# Verify Aerospike is responding80kubectl exec -n aerospike aerospike-basic-0-0 -c aerospike-server -- asinfo -v status81# Expected output: ok82```8384---8586## 2. CE Constraints (Webhook-Enforced)8788These constraints are enforced by the ACKO validating webhook. Violating any of them causes the CR to be rejected at apply time.89901. **Cluster size**: `spec.size` must be between 1 and 8 (inclusive).912. **Namespaces**: Maximum 2 namespaces in `aerospikeConfig.namespaces`.923. **No XDR**: `aerospikeConfig` must not contain an `xdr` section (Enterprise-only).934. **No TLS**: `aerospikeConfig` must not contain a `tls` section (Enterprise-only).945. **No Enterprise images**: `spec.image` must not contain `enterprise`, `ee-`, or `ent-`.956. **Mesh heartbeat only**: `network.heartbeat.mode` must be `mesh`.967. **Byte values as integers**: All size values in `aerospikeConfig` (such as `data-size`, `filesize`) must be specified as integer byte counts, not human-readable strings.978. **Replication factor**: Must be between 1 and 4, and must not exceed `spec.size`.989. **No Enterprise namespace keys**: The following keys are forbidden in namespace config: `compression`, `compression-level`, `durable-delete`, `fast-restart`, `index-type`, `sindex-type`, `rack-id`, `strong-consistency`, `tomb-raider-eligible-age`, `tomb-raider-period`.9910. **No Enterprise security keys**: Only `enable-security` and `default-password-file` are allowed in `aerospikeConfig.security`. The keys `tls`, `ldap`, `log`, `syslog` are forbidden.10011. **Strengthened map/list shapes (April 2026)**: `aerospikeConfig.service` and `aerospikeConfig.network` must be YAML maps; `aerospikeConfig.logging` must be a YAML list; each `namespaces[]` entry must be a map with a `name` key. `MetricLabels` values are TOML-escaped — control characters are rejected. Within one update, namespace `rack-id` may be added OR removed but not both (prevents data loss on rename).10112. **Operations spec invariants**: `spec.operations[].kind` must be `WarmRestart` or `PodRestart`; `spec.operations[].id` length 1–20 chars; the operations list cannot be modified while one operation is `InProgress`. `spec.overrides` only valid when `spec.templateRef` is set.102103---104105## 3. Deployment Scenarios106107Choose the scenario that matches your needs. Each links to a ready-to-use YAML example.108109### Scenario 1: Minimal In-Memory (Dev/Test)110- **File**: [./examples/01-minimal.yaml](./examples/01-minimal.yaml)111- **Use when**: Quick local dev, CI tests, learning ACKO112- **Key features**: 1 node, in-memory storage, no persistence, no ACL113114### Scenario 2: 3-Node with Persistent Volume (Staging/Production Baseline)115- **File**: [./examples/02-3node-pv.yaml](./examples/02-3node-pv.yaml)116- **Use when**: You need data persistence across pod restarts117- **Key features**: 3 nodes, PVC-backed device storage, resource limits, cascadeDelete118119### Scenario 3: ACL (Access Control)120- **File**: [./examples/03-acl.yaml](./examples/03-acl.yaml)121- **Use when**: You need authentication and role-based access control122- **Key features**: security stanza, admin user (sys-admin + user-admin required), K8s Secrets for passwords123124### Scenario 4: Prometheus Monitoring125- **File**: [./examples/04-monitoring.yaml](./examples/04-monitoring.yaml)126- **Use when**: You need metrics, dashboards, and alerting127- **Key features**: Exporter sidecar, ServiceMonitor, PrometheusRule, metric labels128129### Scenario 5: Multi-Rack (Zone-Aware Topology)130- **File**: [./examples/05-multirack.yaml](./examples/05-multirack.yaml)131- **Use when**: You need high availability across availability zones132- **Key features**: 3 racks pinned to zones, rack-aware replication133134### Scenario 6: Advanced Storage135- **File**: [./examples/06-storage-advanced.yaml](./examples/06-storage-advanced.yaml)136- **Use when**: You need block devices, hostPath, CSI, local PV, or sidecar mounts137- **Key features**: Volume policies, block volumes, mount propagation, sidecar sharing138139### Scenario 7: Template-Based140- **File**: [./examples/07-template.yaml](./examples/07-template.yaml)141- **Use when**: You manage multiple clusters with shared configuration142- **Key features**: AerospikeClusterTemplate, templateRef, overrides, resync annotation143144### Scenario 8: Full-Featured145- **File**: [./examples/08-full-featured.yaml](./examples/08-full-featured.yaml)146- **Use when**: Production deployment with all features enabled147- **Key features**: ACL + monitoring + multi-rack + PV + PDB + dynamic config148149### Scenario 9: On-Demand Operations (WarmRestart / PodRestart)150- **File**: [./examples/09-operations.yaml](./examples/09-operations.yaml)151- **Use when**: You need to manually restart pods (warm via SIGUSR1, or full pod recreate) without changing spec152- **Key features**: `spec.operations[]` with `WarmRestart` (SIGUSR1) or `PodRestart` (delete+recreate); optional `podList` to target specific pods; webhook prevents modifying the operations list while one is `InProgress`153154> **Monitoring sample note (`04-monitoring.yaml`)**: Recent fix — `metricLabels` values are TOML-escaped (double-quote-wrapped, backslash-escaped, control chars rejected) and the demo `emptyDir` mount points to `/opt/aerospike/work` instead of accidentally overlaying `/opt/aerospike`. If you cloned this example before April 2026, verify both.155156---157158## 4. CR Spec Reference159160Detail: `./reference/cr-spec-fields.md`161162---163164## 5. Webhook Auto-Settings165166Webhook auto-settings and CRD field mapping: See acko-config-reference skill's `reference/crd-mapping.md`167168---169170## 6. Verification Commands171172Run these after deploying or modifying a cluster.173174```bash175# List all Aerospike clusters with their phase176kubectl get asc -n aerospike177178# Check specific cluster phase179kubectl get asc <name> -n aerospike -o jsonpath='{.status.phase}'180181# Check phase reason (useful when phase is Error or InProgress)182kubectl get asc <name> -n aerospike -o jsonpath='{.status.phaseReason}'183184# Check all conditions185kubectl get asc <name> -n aerospike -o jsonpath='{.status.conditions}' | jq .186187# Check pod status details188kubectl get asc <name> -n aerospike -o jsonpath='{.status.pods}' | jq .189190# Check ready pod count191kubectl get asc <name> -n aerospike -o jsonpath='{.status.size}'192193# Check cluster events (most recent last)194kubectl get events -n aerospike --field-selector involvedObject.name=<name> --sort-by='.lastTimestamp'195196# Verify Aerospike service is responding197kubectl exec -n aerospike <pod-name> -c aerospike-server -- asinfo -v status198199# Check cluster membership200kubectl exec -n aerospike <pod-name> -c aerospike-server -- asinfo -v 'statistics' | tr ';' '\n' | grep cluster_size201202# Check namespace stats203kubectl exec -n aerospike <pod-name> -c aerospike-server -- asinfo -v 'namespace/<namespace-name>'204```205206---207208## 7. Byte Value Reference209210Byte values: See acko-config-reference skill's `reference/byte-values.md`211212---213214## 8. CE 8.1 Configuration Notes215216CE 8.1 notes: See acko-config-reference skill217218---219220## 9. Template Fix Notice (April 2026)221222A recent operator fix re-applies the resolved template to the in-memory cluster spec **after** every `Status().Update`/`Patch`, so template-derived fields (`PodSpec.PodAntiAffinity`, `Resources`, `Storage`) now reach the StatefulSet and persist across reconciles. If you previously worked around this by inlining template values into `spec.overrides`, you can drop those workarounds. `VolumeClaimTemplate` updates remain immutable — VCTs are only set at StatefulSet creation time inside `buildStatefulSet`.