feature: removed further dependecies
This commit is contained in:
31
apps/outline/dependencies-pdb.yaml
Normal file
31
apps/outline/dependencies-pdb.yaml
Normal file
@@ -0,0 +1,31 @@
|
||||
# Pod Disruption Budgets für Outline Dependencies
|
||||
# WICHTIG: PostgreSQL und Redis haben nur 1 Replica
|
||||
# PDBs sind trotzdem sinnvoll für Wartungsarbeiten
|
||||
|
||||
---
|
||||
apiVersion: policy/v1
|
||||
kind: PodDisruptionBudget
|
||||
metadata:
|
||||
name: outline-postgres
|
||||
namespace: outline
|
||||
labels:
|
||||
app: outline-postgres
|
||||
spec:
|
||||
minAvailable: 1 # Mindestens 1 Pod muss immer verfügbar sein
|
||||
selector:
|
||||
matchLabels:
|
||||
app: outline-postgres
|
||||
|
||||
---
|
||||
apiVersion: policy/v1
|
||||
kind: PodDisruptionBudget
|
||||
metadata:
|
||||
name: outline-redis
|
||||
namespace: outline
|
||||
labels:
|
||||
app: outline-redis
|
||||
spec:
|
||||
minAvailable: 1 # Mindestens 1 Pod muss immer verfügbar sein
|
||||
selector:
|
||||
matchLabels:
|
||||
app: outline-redis
|
||||
@@ -1,12 +1,14 @@
|
||||
---
|
||||
# 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)
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: outline-redis
|
||||
namespace: outline
|
||||
spec:
|
||||
replicas: 1
|
||||
replicas: 1 # HA: Optional auf Redis Sentinel upgraden
|
||||
selector:
|
||||
matchLabels:
|
||||
app: outline-redis
|
||||
@@ -41,6 +43,9 @@ spec:
|
||||
app: outline-redis
|
||||
---
|
||||
# POSTGRES
|
||||
# HINWEIS: PostgreSQL HA benötigt Replication (Primary/Standby), nicht einfach mehr Replicas!
|
||||
# ReadWriteOnce PVC kann nur auf einem Pod gemountet werden
|
||||
# Für HA: Patroni + etcd oder Managed PostgreSQL verwenden
|
||||
apiVersion: apps/v1
|
||||
kind: StatefulSet
|
||||
metadata:
|
||||
@@ -48,7 +53,7 @@ metadata:
|
||||
namespace: outline
|
||||
spec:
|
||||
serviceName: outline-postgres
|
||||
replicas: 1
|
||||
replicas: 1 # HA: PostgreSQL Replication erforderlich (Patroni + etcd)
|
||||
selector:
|
||||
matchLabels:
|
||||
app: outline-postgres
|
||||
|
||||
Reference in New Issue
Block a user