{
  "id": "get-started",
  "title": "Get started with Flex on Kubernetes",
  "url": "https://redis.io/docs/latest/operate/kubernetes/8.0/flex/get-started/",
  "summary": "Configure Flex on your Redis Enterprise cluster for Kubernetes.",
  "content": "\n\nThis page applies to Redis database version 7.4 and earlier using Auto Tiering. If you use version 8.0 or later, see [Redis Flex](https://redis.io/docs/latest/operate/kubernetes/flex/).\n\n\nFlex extends your database capacity by combining RAM and flash (SSD) storage. This tiered architecture keeps frequently accessed (hot) data in RAM for sub-millisecond latency while storing less active (warm) data on flash to reduce costs and increase capacity.\n\n## Prerequisites\n\nBefore you begin, verify that you have:\n\n- Redis Enterprise for Kubernetes version 8.0.2-2 or later installed\n- A running `RedisEnterpriseCluster` (REC) resource\n- Redis database version 7.4 or later\n- Locally attached NVMe SSDs on your worker nodes\n- A StorageClass configured for flash storage with a unique name\n\nFor hardware requirements and sizing guidelines, see [Plan your deployment](https://redis.io/docs/latest/operate/kubernetes/flex/plan).\n\n## Configure the REC for Flex\n\nTo enable Flex, configure your `RedisEnterpriseCluster` (REC) resource with flash storage settings. Add the [`redisOnFlashSpec`](https://redis.io/docs/latest/operate/kubernetes/reference/api/redis_enterprise_cluster_api#specredisonflashspec) section to your REC specification.\n\nKey fields in `redisOnFlashSpec`:\n\n| Field                   | Description                                      |\n|-------------------------|--------------------------------------------------|\n| `enabled`               | Set to `true` to enable Flex.                    |\n| `flashStorageClassName` | Name of the StorageClass for flash storage.      |\n| `flashDiskSize`         | Size of the flash storage per node.              |\n| `storageEngine`         | Storage engine. Set to `speedb` for Flex.        |\n\nFor all available fields, see the [REC API reference](https://redis.io/docs/latest/operate/kubernetes/reference/api/redis_enterprise_cluster_api#specredisonflashspec).\n\n\nPVC expansion is not supported when using Flex. Do not enable `enablePersistentVolumeResize` in the REC `persistentSpec` if you are using `redisOnFlashSpec` as this will result in conflicts.\n\n\n1. Create a REC specification file with flash storage settings similar to the following example:\n\n    ```yaml\n    apiVersion: app.redislabs.com/v1\n    kind: RedisEnterpriseCluster\n    metadata:\n      name: rec\n    spec:\n      nodes: 3\n      redisOnFlashSpec:\n        enabled: true\n        flashStorageClassName: local-flash\n        flashDiskSize: 100Gi\n        storageEngine: speedb\n    ```\n\n1. Apply the REC configuration:\n\n    ```sh\n    kubectl apply -f rec.yaml\n    ```\n\n1. Verify that the cluster is ready:\n\n    ```sh\n    kubectl get rec\n    ```\n\n## Create a Flex database\n\nAfter you configure the cluster, create a `RedisEnterpriseDatabase` (REDB) resource with Flex enabled.\n\nKey fields in the REDB:\n\n| Field        | Description                                            |\n|--------------|--------------------------------------------------------|\n| `memorySize` | Total database size (RAM + flash).                     |\n| `isRof`      | Set to `true` to enable Flex for this database.        |\n| `rofRamSize` | Amount of RAM allocated to the database.               |\n\nFor all available fields, see the [REDB API reference](https://redis.io/docs/latest/operate/kubernetes/reference/api/redis_enterprise_database_api).\n\n1. Create a database specification file with `isRof` set to `true` similar to the following example:\n\n    ```yaml\n    apiVersion: app.redislabs.com/v1alpha1\n    kind: RedisEnterpriseDatabase\n    metadata:\n      name: flex-db\n    spec:\n      memorySize: 10Gi\n      isRof: true\n      rofRamSize: 2Gi\n    ```\n\n1. Apply the REDB:\n\n    ```sh\n    kubectl apply -f redb.yaml\n    ```\n\n1. Verify the database status:\n\n    ```sh\n    kubectl get redb\n    ```\n\n## Verify Flex is active\n\nTo confirm that Flex is working:\n\n1. Check the database status:\n\n    ```sh\n    kubectl get redb \u003cdatabase-name\u003e -o yaml\n    ```\n\n2. Look for `isRof: true` in the status section.\n\n3. Connect to the database and verify that data operations work correctly.\n\n## Next steps\n\n- [Scale your deployment](https://redis.io/docs/latest/operate/kubernetes/flex/scale): Learn how to scale volume, throughput, and infrastructure.\n- [Plan your deployment](https://redis.io/docs/latest/operate/kubernetes/flex/plan): Review sizing guidelines and best practices.\n",
  "tags": ["docs","operate","kubernetes"],
  "last_updated": "2026-06-04T14:49:57+01:00"
}
