added HA conf for argo, outline and traefik
This commit is contained in:
@@ -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
12
apps/outline/pdb.yaml
Normal 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
|
||||
Reference in New Issue
Block a user