fix: Remove valkey for redis sidecar

This commit is contained in:
Tanguy Herbron 2025-02-20 18:06:47 +01:00
parent 28d56a2f61
commit 95788a3120
4 changed files with 9 additions and 26 deletions

View File

@ -1,19 +0,0 @@
apiVersion: dragonflydb.io/v1alpha1
kind: Dragonfly
metadata:
name: ghostfolio-cache
namespace: ghostfolio
spec:
replicas: 3
authentication:
passwordFromSecret:
name: ghostfolio-secrets
key: DRAGONFLY_PASSWORD
resources:
requests:
cpu: 500m
memory: 500Mi
limits:
cpu: 600m
memory: 750Mi

View File

@ -36,14 +36,9 @@ spec:
- name: NODE_ENV
value: production
- name: REDIS_HOST
value: ghostfolio-cache.ghostfolio.svc.cluster.local
value: ghostfolio-svc.ghostfolio.svc.cluster.local
- name: REDIS_PORT
value: "6379"
- name: REDIS_PASSWORD
valueFrom:
secretKeyRef:
name: ghostfolio-secrets
key: DRAGONFLY_PASSWORD
- name: ACCESS_TOKEN_SALT
valueFrom:
secretKeyRef:
@ -59,3 +54,7 @@ spec:
secretKeyRef:
name: ghostfolio-secrets
key: JWT_SECRET_KEY
- name: redis
image: redis:7.4.2
ports:
- containerPort: 6379

View File

@ -6,7 +6,6 @@ resources:
- secrets.yaml
- database.yaml
- database-backup.yaml
- cache.yaml
- deployment.yaml
- service.yaml
- ingress.yaml

View File

@ -11,5 +11,9 @@ spec:
port: 80
protocol: TCP
targetPort: 3333
- name: redis
port: 6379
protocol: TCP
targetPort: 6379
selector:
app: ghostfolio