From 5ead49e43e1f465a2d57f01581bcb762c78fed56 Mon Sep 17 00:00:00 2001 From: Viktor Barzin Date: Sat, 14 Mar 2026 21:12:44 +0000 Subject: [PATCH] scale down unused/over-replicated services - osm-routing (otp, osrm-bicycle, osrm-foot): replicas=0, 0Mi actual usage - dashy: replicas=0, redundant with homepage - echo: 5 -> 1 replica - networking-toolbox: 3 -> 1 replica - travel-blog: 3 -> 1 replica - blog: 3 -> 1 replica Saves ~3.5Gi memory requests. --- stacks/blog/main.tf | 2 +- stacks/dashy/main.tf | 3 ++- stacks/echo/main.tf | 2 +- stacks/networking-toolbox/main.tf | 2 +- stacks/osm_routing/main.tf | 9 ++++++--- stacks/travel_blog/main.tf | 2 +- 6 files changed, 12 insertions(+), 8 deletions(-) diff --git a/stacks/blog/main.tf b/stacks/blog/main.tf index 237e56b3..ac9a88d7 100644 --- a/stacks/blog/main.tf +++ b/stacks/blog/main.tf @@ -30,7 +30,7 @@ resource "kubernetes_deployment" "blog" { } } spec { - replicas = 3 + replicas = 1 selector { match_labels = { run = "blog" diff --git a/stacks/dashy/main.tf b/stacks/dashy/main.tf index 1fe9e142..77295cfc 100644 --- a/stacks/dashy/main.tf +++ b/stacks/dashy/main.tf @@ -48,7 +48,8 @@ resource "kubernetes_deployment" "dashy" { } } spec { - replicas = 1 + # Disabled: reduce cluster memory pressure (2026-03-14 OOM incident) + replicas = 0 selector { match_labels = { app = "dashy" diff --git a/stacks/echo/main.tf b/stacks/echo/main.tf index 2e408aba..0e950b21 100644 --- a/stacks/echo/main.tf +++ b/stacks/echo/main.tf @@ -30,7 +30,7 @@ resource "kubernetes_deployment" "echo" { } } spec { - replicas = 5 + replicas = 1 selector { match_labels = { app = "echo" diff --git a/stacks/networking-toolbox/main.tf b/stacks/networking-toolbox/main.tf index 899f1220..af7e5f7c 100644 --- a/stacks/networking-toolbox/main.tf +++ b/stacks/networking-toolbox/main.tf @@ -30,7 +30,7 @@ resource "kubernetes_deployment" "networking-toolbox" { } } spec { - replicas = 3 + replicas = 1 selector { match_labels = { app = "networking-toolbox" diff --git a/stacks/osm_routing/main.tf b/stacks/osm_routing/main.tf index d42af6ec..60bc03d5 100644 --- a/stacks/osm_routing/main.tf +++ b/stacks/osm_routing/main.tf @@ -59,7 +59,8 @@ resource "kubernetes_deployment" "osrm-foot" { } } spec { - replicas = 1 + # Disabled: reduce cluster memory pressure (2026-03-14 OOM incident) + replicas = 0 strategy { type = "Recreate" } @@ -139,7 +140,8 @@ resource "kubernetes_deployment" "osrm-bicycle" { } } spec { - replicas = 1 + # Disabled: reduce cluster memory pressure (2026-03-14 OOM incident) + replicas = 0 strategy { type = "Recreate" } @@ -219,7 +221,8 @@ resource "kubernetes_deployment" "otp" { } } spec { - replicas = 1 + # Disabled: reduce cluster memory pressure (2026-03-14 OOM incident) + replicas = 0 strategy { type = "Recreate" } diff --git a/stacks/travel_blog/main.tf b/stacks/travel_blog/main.tf index 31daa076..18f386bc 100644 --- a/stacks/travel_blog/main.tf +++ b/stacks/travel_blog/main.tf @@ -30,7 +30,7 @@ resource "kubernetes_deployment" "blog" { } } spec { - replicas = 3 + replicas = 1 selector { match_labels = { app = "travel-blog"