From efb467e42530f7173caf43e19e4128cb9d94505d Mon Sep 17 00:00:00 2001 From: rasmus Date: Thu, 17 Jul 2025 10:52:21 +0300 Subject: [PATCH] dragonfly: scale to 1 instance (hotfix) eaas: dragonfly has 1 rw instance and applications don't realize and change over from ro to rw when the leader changes. --- argocd/applications/dragonfly.yaml | 2 +- dragonfly-operator-system/README.md | 7 ------- harbor/application-extras.yml | 4 ++-- nextcloud/application.yaml | 2 +- passmower/dragonfly.yaml | 2 +- wildduck/session-storage.yaml | 2 +- 6 files changed, 6 insertions(+), 13 deletions(-) diff --git a/argocd/applications/dragonfly.yaml b/argocd/applications/dragonfly.yaml index 09a528f..eff2777 100644 --- a/argocd/applications/dragonfly.yaml +++ b/argocd/applications/dragonfly.yaml @@ -9,7 +9,7 @@ spec: project: k-space.ee source: repoURL: https://github.com/dragonflydb/dragonfly-operator - targetRevision: v1.1.11 + targetRevision: v1.1.11 # https://github.com/dragonflydb/dragonfly-operator/releases path: manifests directory: include: 'dragonfly-operator.yaml' diff --git a/dragonfly-operator-system/README.md b/dragonfly-operator-system/README.md index dc925d8..f96f47f 100644 --- a/dragonfly-operator-system/README.md +++ b/dragonfly-operator-system/README.md @@ -1,5 +1,4 @@ # Dragonfly Operator - Dragonfly operator is the preferred way to add Redis support to your application as it is modern Go rewrite and it supports high availability. @@ -14,9 +13,7 @@ Note that vanilla Redis [has changed it's licensing policy](https://redis.io/blog/redis-adopts-dual-source-available-licensing/) # For users - Refer to [official documentation on usage](https://www.dragonflydb.io/docs/getting-started/kubernetes-operator#create-a-dragonfly-instance-with-replicas) - For example deployment see [here](https://git.k-space.ee/k-space/kube/src/branch/master/passmower/dragonfly.yaml). To find other instances in this repository use `grep -r "kind: Dragonfly"` @@ -27,7 +24,3 @@ To achieve high availabilllity use 2+ replicas with correctly configured # For administrators See [/argocd/applications/dragonfly.yaml](/argocd/applications/dragonfly.yaml) - -To upgrade refer to -[github.com/dragonflydb/dragonfly-operator](https://github.com/dragonflydb/dragonfly-operator/releases), -bump version and reapply diff --git a/harbor/application-extras.yml b/harbor/application-extras.yml index a96159c..20db5c4 100644 --- a/harbor/application-extras.yml +++ b/harbor/application-extras.yml @@ -51,7 +51,7 @@ spec: passwordFromSecret: key: REDIS_PASSWORD name: dragonfly-auth - replicas: 3 + replicas: 1 resources: limits: - memory: 5Gi \ No newline at end of file + memory: 5Gi diff --git a/nextcloud/application.yaml b/nextcloud/application.yaml index bbf6c7f..2bf3061 100644 --- a/nextcloud/application.yaml +++ b/nextcloud/application.yaml @@ -20,7 +20,7 @@ spec: passwordFromSecret: key: REDIS_PASSWORD name: dragonfly-auth - replicas: 3 + replicas: 1 topologySpreadConstraints: - maxSkew: 1 topologyKey: topology.kubernetes.io/zone diff --git a/passmower/dragonfly.yaml b/passmower/dragonfly.yaml index 2fbeacb..a989563 100644 --- a/passmower/dragonfly.yaml +++ b/passmower/dragonfly.yaml @@ -23,7 +23,7 @@ spec: passwordFromSecret: key: password name: dragonfly-auth - replicas: 3 + replicas: 1 topologySpreadConstraints: - maxSkew: 1 topologyKey: topology.kubernetes.io/zone diff --git a/wildduck/session-storage.yaml b/wildduck/session-storage.yaml index f5b3425..e0d13dc 100644 --- a/wildduck/session-storage.yaml +++ b/wildduck/session-storage.yaml @@ -24,7 +24,7 @@ spec: passwordFromSecret: key: password name: session-storage - replicas: 3 + replicas: 1 resources: limits: cpu: 1000m