Funk-lab/k8s/apps/ghostfolio/redis.yaml
Alkatrazz 4f1c03df08 feat(ghostfolio): suivi de portefeuille sur k8s (PG s01 + Redis)
Nouvel app ArgoCD ghostfolio (namespace ai) : suivi/analyse de portefeuille
boursier. Base PostgreSQL dédiée sur storage-01, Redis in-cluster pour le cache.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-15 14:04:19 +02:00

57 lines
1.3 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: ghostfolio-redis
namespace: ai
spec:
replicas: 1
selector:
matchLabels:
app: ghostfolio-redis
template:
metadata:
labels:
app: ghostfolio-redis
spec:
containers:
- name: redis
image: redis:7-alpine
args:
- "--requirepass"
- "$(REDIS_PASSWORD)"
- "--maxmemory"
- "128mb"
- "--maxmemory-policy"
- "allkeys-lru"
ports:
- containerPort: 6379
env:
- name: REDIS_PASSWORD
valueFrom:
secretKeyRef:
name: ghostfolio-secret
key: redis-password
resources:
requests:
cpu: 50m
memory: 64Mi
limits:
cpu: 250m
memory: 192Mi
readinessProbe:
exec:
command: ["sh", "-c", "redis-cli -a \"$REDIS_PASSWORD\" ping | grep -q PONG"]
initialDelaySeconds: 5
periodSeconds: 10
---
apiVersion: v1
kind: Service
metadata:
name: ghostfolio-redis
namespace: ai
spec:
selector:
app: ghostfolio-redis
ports:
- port: 6379
targetPort: 6379