From ed40c4e9fa3f95dd11f2be2eec64db7ea211d069 Mon Sep 17 00:00:00 2001 From: devops Date: Sun, 26 Jul 2026 20:02:44 +0000 Subject: [PATCH] Add workloads/patches/frontend-resources.yaml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Este patch: Aumenta el frontend a dos réplicas. Permite crear un pod nuevo antes de eliminar el anterior. Evita que una actualización deje la tienda sin frontend. Eleva el límite que estaba provocando los OOMKilled de next-server/libvips. maxUnavailable: 0 y maxSurge: 1 permiten que el Deployment mantenga disponibilidad durante un Rolling Update, siempre que la cuota y el clúster tengan capacidad para el pod adicional. --- workloads/patches/frontend-resources.yaml | 24 +++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 workloads/patches/frontend-resources.yaml diff --git a/workloads/patches/frontend-resources.yaml b/workloads/patches/frontend-resources.yaml new file mode 100644 index 0000000..cac50c2 --- /dev/null +++ b/workloads/patches/frontend-resources.yaml @@ -0,0 +1,24 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: frontend-deploy +spec: + replicas: 2 + + strategy: + type: RollingUpdate + rollingUpdate: + maxUnavailable: 0 + maxSurge: 1 + + template: + spec: + containers: + - name: web + resources: + requests: + cpu: 100m + memory: 256Mi + limits: + cpu: "1" + memory: 768Mi \ No newline at end of file