Dragonfly Operator

Prerequisites

This guide assumes you have the following prerequisites in place:

Dragonfly Operator

Dragonfly Operator allows you to deploy HA Redis clusters on Kubernetes.

Installation

  1. Create the following directory structure for the Dragonfly Operator:

    dragonfly-system/
    ├── dragonfly-repo.yml
    └── dragonfly-release.yml
  2. Create the dragonfly-repo.yml file with the following content:

     ---
     apiVersion: source.toolkit.fluxcd.io/v1
     kind: HelmRepository
     metadata:
       name: dragonfly
       namespace: flux-system
     spec:
       interval: 6h
       url: oci://ghcr.io/dragonflydb/dragonfly-operator/helm
       type: oci
  3. Create the dragonfly-release.yml file with the following content:

    ---
    apiVersion: helm.toolkit.fluxcd.io/v2
    kind: HelmRelease
    metadata:
      name: dragonfly-operator
      namespace: dragonfly-system
    spec:
      interval: 6h
      chart:
        spec:
          chart: dragonfly-operator
          version: "v1.5.0"
          sourceRef:
            kind: HelmRepository
            name: dragonfly
            namespace: flux-system
          interval: 6h
      install:
        remediation:
          retries: 3
      upgrade:
        remediation:
          retries: 3
  4. Commit and push the changes to your Git repository. Flux will deploy the Dragonfly Operator to your Kubernetes cluster.