feat(apps): PodDisruptionBudget for forte-drop web (minAvailable 1)

This commit is contained in:
Sten
2026-05-29 09:31:16 +02:00
committed by Danijel Simeunovic
parent c840dbb4b5
commit 46f2d2d661
2 changed files with 25 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
# Keep at least 1 web pod up during voluntary disruptions (node drain, upgrade).
# Pairs with replicaCount: 2 so a drain can evict one pod while the other serves.
#
# Selector verified against live forteapp-chart deployments (mcp10x, argocd-mcp):
# the chart's pod selector is {app.kubernetes.io/instance, app.kubernetes.io/name,
# component: app} where instance/name == the ArgoCD Application (Helm release) name.
# Using all three labels also disambiguates the web pods from the forte-drop-mcp
# deployment that shares the forte-drop namespace (its instance/name == forte-drop-mcp).
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: forte-drop-web
namespace: forte-drop
labels:
app.kubernetes.io/name: forte-drop
app.kubernetes.io/part-of: apps
app.kubernetes.io/managed-by: argocd
spec:
minAvailable: 1
selector:
matchLabels:
app.kubernetes.io/instance: forte-drop
app.kubernetes.io/name: forte-drop
component: app

View File

@@ -3,5 +3,6 @@ kind: Kustomization
resources:
- forte-drop.yaml
- keycloak-client-forte-drop.yaml
- forte-drop-pdb.yaml
# - forte-drop-secrets-sealed.yaml # added in follow-up commit
# - auth-oidc-sealed.yaml # added in follow-up commit (after Keycloak registrar creates client_secret)