From 178e523bc26aca8f3f79312f7a23f2174dbb066f Mon Sep 17 00:00:00 2001 From: jenkins Date: Wed, 20 May 2026 05:23:49 -0300 Subject: [PATCH] ops(traefik): keep ingress available during balancing --- infrastructure/traefik/deployment.yaml | 3 ++- infrastructure/traefik/kustomization.yaml | 1 + infrastructure/traefik/pdb.yaml | 11 +++++++++++ 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 infrastructure/traefik/pdb.yaml diff --git a/infrastructure/traefik/deployment.yaml b/infrastructure/traefik/deployment.yaml index 26a45c21..19d42465 100644 --- a/infrastructure/traefik/deployment.yaml +++ b/infrastructure/traefik/deployment.yaml @@ -10,7 +10,7 @@ items: namespace: traefik spec: progressDeadlineSeconds: 600 - replicas: 1 + replicas: 2 revisionHistoryLimit: 10 selector: matchLabels: @@ -23,6 +23,7 @@ items: template: metadata: annotations: + descheduler.alpha.kubernetes.io/evict: "false" kubectl.kubernetes.io/restartedAt: "2025-02-12T05:57:48-06:00" creationTimestamp: null labels: diff --git a/infrastructure/traefik/kustomization.yaml b/infrastructure/traefik/kustomization.yaml index 19170d11..d2ead9a6 100644 --- a/infrastructure/traefik/kustomization.yaml +++ b/infrastructure/traefik/kustomization.yaml @@ -8,6 +8,7 @@ resources: - crds.yaml - ingressclass.yaml - deployment.yaml + - pdb.yaml - serviceaccount.yaml - clusterrole.yaml - clusterrolebinding.yaml diff --git a/infrastructure/traefik/pdb.yaml b/infrastructure/traefik/pdb.yaml new file mode 100644 index 00000000..3b057687 --- /dev/null +++ b/infrastructure/traefik/pdb.yaml @@ -0,0 +1,11 @@ +# infrastructure/traefik/pdb.yaml +apiVersion: policy/v1 +kind: PodDisruptionBudget +metadata: + name: traefik + namespace: traefik +spec: + minAvailable: 1 + selector: + matchLabels: + app: traefik