From 681bfd80b0cd143c48b97290ef230466df9b2b1a Mon Sep 17 00:00:00 2001 From: Nikolai Rodionov Date: Sun, 26 Apr 2026 21:15:26 +0200 Subject: [PATCH] Start adding dragonfly to helmfile Signed-off-by: Nikolai Rodionov --- helmfile.yaml.gotmpl | 41 +++++++++++++++++++++++++++++++++++++++++ kind-config.yaml | 16 ++++++---------- 2 files changed, 47 insertions(+), 10 deletions(-) diff --git a/helmfile.yaml.gotmpl b/helmfile.yaml.gotmpl index e49bd1e..fa2ae55 100644 --- a/helmfile.yaml.gotmpl +++ b/helmfile.yaml.gotmpl @@ -13,6 +13,9 @@ repositories: - name: cloudpirates url: registry-1.docker.io/cloudpirates oci: true + - name: dragonfly + url: ghcr.io/dragonflydb/dragonfly/helm + oci: true releases: - name: postgres-instance @@ -31,3 +34,41 @@ releases: - persistentVolumeClaimRetentionPolicy: enabled: true whenDeleted: Delete + - name: dragonfly + namespace: databases + chart: dragonfly/dragonfly + version: v1.38.0 + installed: true + values: + - storage: + enabled: true + requests: 128Mi # Set a desired volume size for PVC. + extraArgs: + - --dbfilename=my-dump-{timestamp} # Only the filename without any file extensions. + - --snapshot_cron=* * * * * # Set a valid cron schedule. + podSecurityContext: + fsGroup: 2000 + securityContext: + capabilities: + drop: + - ALL + readOnlyRootFilesystem: true + runAsNonRoot: true + runAsUser: 1000 + redis: + # -- Enable redis cluster with docker container. + enable: true + image: + repository: bitnamilegacy/redis + # -- Cluster domain. + clusterDomain: 'cluster.local' + auth: + # -- Enable password authentication. + enabled: true + # -- Redis password. + password: dragonfly + master: + service: + ports: + # -- Redis master service port. + redis: 6379 diff --git a/kind-config.yaml b/kind-config.yaml index d76fde6..c69d6d8 100644 --- a/kind-config.yaml +++ b/kind-config.yaml @@ -1,13 +1,9 @@ apiVersion: kind.x-k8s.io/v1alpha4 kind: Cluster nodes: -- role: control-plane - extraPortMappings: - - containerPort: 30000 - hostPort: 30000 - - containerPort: 30001 - hostPort: 30001 - - containerPort: 30432 - hostPort: 30432 - - containerPort: 30306 - hostPort: 30306 + - role: control-plane + extraPortMappings: + - containerPort: 30432 + hostPort: 30432 + - containerPort: 30431 + hostPort: 30431