mirror of
https://github.com/Alkatrazz24/Funk-lab.git
synced 2026-07-08 11:04:43 +02:00
Avoirs majoritairement en euros — fixe la devise de base système à l'installation pour un affichage natif en EUR sans dépendre d'un taux de change. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
76 lines
2.2 KiB
YAML
76 lines
2.2 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: ghostfolio
|
|
namespace: ai
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: ghostfolio
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: ghostfolio
|
|
spec:
|
|
containers:
|
|
- name: ghostfolio
|
|
image: ghostfolio/ghostfolio:latest
|
|
ports:
|
|
- containerPort: 3333
|
|
env:
|
|
# PostgreSQL sur storage-01 (hors cluster) — chaîne complète dans le secret
|
|
- name: DATABASE_URL
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: ghostfolio-secret
|
|
key: database-url
|
|
# Redis (in-cluster)
|
|
- name: REDIS_HOST
|
|
value: "ghostfolio-redis"
|
|
- name: REDIS_PORT
|
|
value: "6379"
|
|
- name: REDIS_PASSWORD
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: ghostfolio-secret
|
|
key: redis-password
|
|
# Secrets applicatifs Ghostfolio
|
|
- name: ACCESS_TOKEN_SALT
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: ghostfolio-secret
|
|
key: access-token-salt
|
|
- name: JWT_SECRET_KEY
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: ghostfolio-secret
|
|
key: jwt-secret-key
|
|
- name: PORT
|
|
value: "3333"
|
|
- name: TZ
|
|
value: "Europe/Paris"
|
|
# Devise système — à fixer une seule fois à l'installation.
|
|
# EUR car les avoirs sont majoritairement en euros (évite la
|
|
# dépendance à un taux de change pour l'affichage des actifs EUR).
|
|
- name: BASE_CURRENCY
|
|
value: "EUR"
|
|
resources:
|
|
requests:
|
|
cpu: 200m
|
|
memory: 512Mi
|
|
limits:
|
|
cpu: 1000m
|
|
memory: 1Gi
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /api/v1/health
|
|
port: 3333
|
|
initialDelaySeconds: 30
|
|
periodSeconds: 15
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /api/v1/health
|
|
port: 3333
|
|
initialDelaySeconds: 60
|
|
periodSeconds: 30
|