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.
This commit is contained in:
2025-07-17 10:52:21 +03:00
parent 130839ff7f
commit efb467e425
6 changed files with 6 additions and 13 deletions

View File

@@ -9,7 +9,7 @@ spec:
project: k-space.ee project: k-space.ee
source: source:
repoURL: https://github.com/dragonflydb/dragonfly-operator repoURL: https://github.com/dragonflydb/dragonfly-operator
targetRevision: v1.1.11 targetRevision: v1.1.11 # https://github.com/dragonflydb/dragonfly-operator/releases
path: manifests path: manifests
directory: directory:
include: 'dragonfly-operator.yaml' include: 'dragonfly-operator.yaml'

View File

@@ -1,5 +1,4 @@
# Dragonfly Operator # Dragonfly Operator
Dragonfly operator is the preferred way to add Redis support to your application Dragonfly operator is the preferred way to add Redis support to your application
as it is modern Go rewrite and it supports high availability. 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/) [has changed it's licensing policy](https://redis.io/blog/redis-adopts-dual-source-available-licensing/)
# For users # For users
Refer to [official documentation on usage](https://www.dragonflydb.io/docs/getting-started/kubernetes-operator#create-a-dragonfly-instance-with-replicas) 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 For example deployment see
[here](https://git.k-space.ee/k-space/kube/src/branch/master/passmower/dragonfly.yaml). [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"` 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 # For administrators
See [/argocd/applications/dragonfly.yaml](/argocd/applications/dragonfly.yaml) 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

View File

@@ -51,7 +51,7 @@ spec:
passwordFromSecret: passwordFromSecret:
key: REDIS_PASSWORD key: REDIS_PASSWORD
name: dragonfly-auth name: dragonfly-auth
replicas: 3 replicas: 1
resources: resources:
limits: limits:
memory: 5Gi memory: 5Gi

View File

@@ -20,7 +20,7 @@ spec:
passwordFromSecret: passwordFromSecret:
key: REDIS_PASSWORD key: REDIS_PASSWORD
name: dragonfly-auth name: dragonfly-auth
replicas: 3 replicas: 1
topologySpreadConstraints: topologySpreadConstraints:
- maxSkew: 1 - maxSkew: 1
topologyKey: topology.kubernetes.io/zone topologyKey: topology.kubernetes.io/zone

View File

@@ -23,7 +23,7 @@ spec:
passwordFromSecret: passwordFromSecret:
key: password key: password
name: dragonfly-auth name: dragonfly-auth
replicas: 3 replicas: 1
topologySpreadConstraints: topologySpreadConstraints:
- maxSkew: 1 - maxSkew: 1
topologyKey: topology.kubernetes.io/zone topologyKey: topology.kubernetes.io/zone

View File

@@ -24,7 +24,7 @@ spec:
passwordFromSecret: passwordFromSecret:
key: password key: password
name: session-storage name: session-storage
replicas: 3 replicas: 1
resources: resources:
limits: limits:
cpu: 1000m cpu: 1000m