added HA conf for argo, outline and traefik

This commit is contained in:
2026-01-19 00:25:51 +01:00
parent 3f4672684f
commit d6d1614660
6 changed files with 78 additions and 12 deletions

View File

@@ -6,7 +6,7 @@ metadata:
labels:
app: outline
spec:
replicas: 1
replicas: 2 # HA: Mindestens 2 Replicas für Ausfallsicherheit
selector:
matchLabels:
app: outline
@@ -15,6 +15,17 @@ spec:
labels:
app: outline
spec:
affinity:
podAntiAffinity:
# Hard Rule: Pods müssen auf verschiedenen Nodes laufen
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: app
operator: In
values:
- outline
topologyKey: kubernetes.io/hostname
containers:
- name: outline
image: outlinewiki/outline:latest

12
apps/outline/pdb.yaml Normal file
View File

@@ -0,0 +1,12 @@
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: outline
namespace: outline
labels:
app: outline
spec:
minAvailable: 1 # Mindestens 1 Pod muss immer verfügbar sein
selector:
matchLabels:
app: outline