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