# Data in memory storage configuration for Aerospike on Kubernetes

## Overview

A data in memory (DIM) configuration is an easy way to test an Aerospike cluster without having to configure separate storage. For more information on DIM and other storage configurations, [see the Aerospike documentation for namespace storage configuration](https://aerospike.com/docs/database/manage/namespace/storage/config).

::: note
In-memory only namespaces cannot be configured with [strong consistency (SC)](https://aerospike.com/docs/kubernetes/4.1.x/manage/configure/strong-consistency) on a Kubernetes deployment.
:::

## Configure data in memory

1.  Add the following storage-specific configuration to the Aerospike cluster’s custom resource (CR) file.
    
    ```yaml
    aerospikeConfig:
    
        namespaces:
    
          - name: test
    
            replication-factor: 2
    
            storage-engine:
    
              type: memory
    
              data-size: 1073741824
    ```
    
    Several examples of DIM cluster CR files are in [the main Aerospike Kubernetes Operator repository](https://github.com/aerospike/aerospike-kubernetes-operator/tree/v4.1.2/config/samples).
    
2.  Save and exit the CR file, then use `kubectl` to apply the change.
    
    Terminal window
    
    ```shell
    kubectl apply -f aerospike-cluster.yaml
    ```