Skip to content

Commit

Permalink
feat(authelia): migrate to dedicated redis failover instance
Browse files Browse the repository at this point in the history
  • Loading branch information
pascaliske committed Oct 17, 2024
1 parent b27c5ee commit d23def6
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 1 deletion.
11 changes: 10 additions & 1 deletion cluster/services/authelia/helm-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,16 @@ spec:
subdomain: auth
default_redirection_url: https://${DOMAIN_EXTERNAL}
redis:
host: redis.redis.svc.cluster.local
enabled: true
host: rfs-redis
port: 26379
password:
disabled: true
high_availability:
enabled: true
sentinel_name: 'mymaster'
password:
disabled: true
storage:
encryption_key:
path: STORAGE_ENCRYPTION_KEY
Expand Down
1 change: 1 addition & 0 deletions cluster/services/authelia/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ resources:
- middlewares
- config
- namespace.yaml
- redis.yaml
- helm-release.yaml
- certificate.yaml
- route.yaml
33 changes: 33 additions & 0 deletions cluster/services/authelia/redis.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
apiVersion: databases.spotahome.com/v1
kind: RedisFailover
metadata:
name: redis
namespace: authelia
spec:
redis:
image: redis:6.2.14-alpine
replicas: 3
exporter:
enabled: true
image: oliver006/redis_exporter:v1.65.0-alpine
resources:
requests:
cpu: 100m
memory: 100Mi
limits:
cpu: 400m
memory: 500Mi
sentinel:
image: redis:6.2.14-alpine
replicas: 3
exporter:
enabled: true
image: oliver006/redis_exporter:v1.65.0-alpine
resources:
requests:
cpu: 100m
memory: 100Mi
limits:
cpu: 400m
memory: 500Mi

0 comments on commit d23def6

Please sign in to comment.