veza/k8s/load-balancing/pod-disruption-budget.yaml
2026-03-06 10:02:53 +01:00

40 lines
959 B
YAML

# Pod Disruption Budgets for High Availability
# These ensure minimum availability during voluntary disruptions (updates, node maintenance)
---
# Backend API Pod Disruption Budget
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: veza-backend-api-pdb
namespace: veza-production
spec:
minAvailable: 2 # At least 2 pods must be available
selector:
matchLabels:
app: veza-backend-api
---
# Frontend Pod Disruption Budget
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: veza-frontend-pdb
namespace: veza-production
spec:
minAvailable: 1 # At least 1 pod must be available
selector:
matchLabels:
app: veza-frontend
---
# Stream Server Pod Disruption Budget
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: veza-stream-server-pdb
namespace: veza-production
spec:
minAvailable: 1 # At least 1 pod must be available
selector:
matchLabels:
app: veza-stream-server