Skip to content
Snippets Groups Projects
Verified Commit 3f1fd188 authored by Sheogorath's avatar Sheogorath :european_castle:
Browse files

feat(mastodon): Use operator-based redis cluster

This patch adjust the base deployment of mastodon to use a
redis-operator based setup of redis, which should reduce potential
Single-Points-Of-Failure keeping all redis-based operations nice and HA.
parent 0b757804
No related branches found
No related tags found
No related merge requests found
Pipeline #18214 passed
...@@ -6,9 +6,11 @@ resources: ...@@ -6,9 +6,11 @@ resources:
- ca.yaml - ca.yaml
- release.yaml - release.yaml
- database.yaml - database.yaml
- redis.yaml
- ../../../shared/networkpolicies/allow-from-same-namespace.yaml - ../../../shared/networkpolicies/allow-from-same-namespace.yaml
- ../../../shared/networkpolicies/allow-from-ingress.yaml - ../../../shared/networkpolicies/allow-from-ingress.yaml
- ../../../shared/networkpolicies/allow-from-database.yaml - ../../../shared/networkpolicies/allow-from-database.yaml
- ../../../shared/networkpolicies/allow-from-monitoring.yaml - ../../../shared/networkpolicies/allow-from-monitoring.yaml
- ../../../shared/networkpolicies/allow-from-redis.yaml
patchesStrategicMerge: patchesStrategicMerge:
- networkpolicy.yaml - networkpolicy.yaml
apiVersion: databases.spotahome.com/v1
kind: RedisFailover
metadata:
name: mastodon-redis
namespace: mastodon
spec:
sentinel:
replicas: 3
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: 200m
memory: 256Mi
redis:
replicas: 3
resources:
requests:
memory: 128Mi
cpu: 100m
limits:
memory: 256Mi
cpu: 200m
...@@ -160,20 +160,7 @@ data: ...@@ -160,20 +160,7 @@ data:
ingress: ingress:
enabled: false enabled: false
redis: redis:
master: enabled: false
resources: redisUrl: redis+sentianal://rfs-mastodon-redis:26379/mymaster
limits: auth:
cpu: 100m enabled: false
memory: 128Mi
requests:
cpu: 100m
memory: 128Mi
replica:
replicaCount: 1
resources:
limits:
cpu: 100m
memory: 128Mi
requests:
cpu: 100m
memory: 128Mi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment