feature: removed further dependecies

This commit is contained in:
2026-01-19 00:32:56 +01:00
parent d6d1614660
commit 63dad0fcd7
3 changed files with 45 additions and 2 deletions

View File

@@ -1,5 +1,6 @@
# ArgoCD HA Patch # ArgoCD HA Patch
# Patches das argocd-server Deployment für High Availability # Patches das argocd-server Deployment für High Availability
# WICHTIG: Strategic Merge Patch - muss vollständige Struktur enthalten
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
@@ -8,7 +9,13 @@ metadata:
namespace: argocd namespace: argocd
spec: spec:
replicas: 2 # HA: Mindestens 2 Replicas für Ausfallsicherheit replicas: 2 # HA: Mindestens 2 Replicas für Ausfallsicherheit
selector:
matchLabels:
app.kubernetes.io/name: argocd-server
template: template:
metadata:
labels:
app.kubernetes.io/name: argocd-server
spec: spec:
affinity: affinity:
podAntiAffinity: podAntiAffinity:

View 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

View File

@@ -1,12 +1,14 @@
--- ---
# REDIS # 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 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: outline-redis name: outline-redis
namespace: outline namespace: outline
spec: spec:
replicas: 1 replicas: 1 # HA: Optional auf Redis Sentinel upgraden
selector: selector:
matchLabels: matchLabels:
app: outline-redis app: outline-redis
@@ -41,6 +43,9 @@ spec:
app: outline-redis app: outline-redis
--- ---
# POSTGRES # 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 apiVersion: apps/v1
kind: StatefulSet kind: StatefulSet
metadata: metadata:
@@ -48,7 +53,7 @@ metadata:
namespace: outline namespace: outline
spec: spec:
serviceName: outline-postgres serviceName: outline-postgres
replicas: 1 replicas: 1 # HA: PostgreSQL Replication erforderlich (Patroni + etcd)
selector: selector:
matchLabels: matchLabels:
app: outline-postgres app: outline-postgres