added longhorn support for outline and traefik
This commit is contained in:
@@ -1,14 +1,18 @@
|
||||
---
|
||||
# REDIS
|
||||
# HINWEIS: Redis HA (Sentinel) wäre besser, aber 1 Replica ist OK für Cache
|
||||
# Wenn Redis ausfällt, funktioniert Outline noch (nur Features eingeschränkt)
|
||||
# HINWEIS:
|
||||
# - Redis wird hier auf einem PersistentVolume (Longhorn) betrieben.
|
||||
# - Repliken = 1 bedeutet: Kein echtes Redis-HA, aber Daten überleben Node-/Pod-Neustarts.
|
||||
# - Für echtes Redis-HA (Multi-Node-Failover) brauchst du später Redis Sentinel / Redis Operator
|
||||
# oder ein extern verwaltetes Redis (Managed DB).
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
kind: StatefulSet
|
||||
metadata:
|
||||
name: outline-redis
|
||||
namespace: outline
|
||||
spec:
|
||||
replicas: 1 # HA: Optional auf Redis Sentinel upgraden
|
||||
serviceName: outline-redis
|
||||
replicas: 1 # Für echtes HA später Redis Sentinel/Cluster einsetzen
|
||||
selector:
|
||||
matchLabels:
|
||||
app: outline-redis
|
||||
@@ -29,6 +33,18 @@ spec:
|
||||
secretKeyRef:
|
||||
name: outline-secrets
|
||||
key: redis-password
|
||||
volumeMounts:
|
||||
- name: redis-data
|
||||
mountPath: /data
|
||||
volumeClaimTemplates:
|
||||
- metadata:
|
||||
name: redis-data
|
||||
spec:
|
||||
accessModes: ["ReadWriteOnce"]
|
||||
storageClassName: longhorn
|
||||
resources:
|
||||
requests:
|
||||
storage: 2Gi
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
@@ -85,6 +101,7 @@ spec:
|
||||
name: postgres-data
|
||||
spec:
|
||||
accessModes: [ "ReadWriteOnce" ]
|
||||
storageClassName: longhorn
|
||||
resources:
|
||||
requests:
|
||||
storage: 5Gi
|
||||
|
||||
Reference in New Issue
Block a user