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.
This commit is contained in:
parent
f7c2c06009
commit
843ba0ae8f
6 changed files with 12 additions and 8 deletions
|
|
@ -30,7 +30,7 @@ resource "kubernetes_deployment" "blog" {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
spec {
|
spec {
|
||||||
replicas = 3
|
replicas = 1
|
||||||
selector {
|
selector {
|
||||||
match_labels = {
|
match_labels = {
|
||||||
run = "blog"
|
run = "blog"
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,8 @@ resource "kubernetes_deployment" "dashy" {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
spec {
|
spec {
|
||||||
replicas = 1
|
# Disabled: reduce cluster memory pressure (2026-03-14 OOM incident)
|
||||||
|
replicas = 0
|
||||||
selector {
|
selector {
|
||||||
match_labels = {
|
match_labels = {
|
||||||
app = "dashy"
|
app = "dashy"
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ resource "kubernetes_deployment" "echo" {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
spec {
|
spec {
|
||||||
replicas = 5
|
replicas = 1
|
||||||
selector {
|
selector {
|
||||||
match_labels = {
|
match_labels = {
|
||||||
app = "echo"
|
app = "echo"
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ resource "kubernetes_deployment" "networking-toolbox" {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
spec {
|
spec {
|
||||||
replicas = 3
|
replicas = 1
|
||||||
selector {
|
selector {
|
||||||
match_labels = {
|
match_labels = {
|
||||||
app = "networking-toolbox"
|
app = "networking-toolbox"
|
||||||
|
|
|
||||||
|
|
@ -59,7 +59,8 @@ resource "kubernetes_deployment" "osrm-foot" {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
spec {
|
spec {
|
||||||
replicas = 1
|
# Disabled: reduce cluster memory pressure (2026-03-14 OOM incident)
|
||||||
|
replicas = 0
|
||||||
strategy {
|
strategy {
|
||||||
type = "Recreate"
|
type = "Recreate"
|
||||||
}
|
}
|
||||||
|
|
@ -139,7 +140,8 @@ resource "kubernetes_deployment" "osrm-bicycle" {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
spec {
|
spec {
|
||||||
replicas = 1
|
# Disabled: reduce cluster memory pressure (2026-03-14 OOM incident)
|
||||||
|
replicas = 0
|
||||||
strategy {
|
strategy {
|
||||||
type = "Recreate"
|
type = "Recreate"
|
||||||
}
|
}
|
||||||
|
|
@ -219,7 +221,8 @@ resource "kubernetes_deployment" "otp" {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
spec {
|
spec {
|
||||||
replicas = 1
|
# Disabled: reduce cluster memory pressure (2026-03-14 OOM incident)
|
||||||
|
replicas = 0
|
||||||
strategy {
|
strategy {
|
||||||
type = "Recreate"
|
type = "Recreate"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ resource "kubernetes_deployment" "blog" {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
spec {
|
spec {
|
||||||
replicas = 3
|
replicas = 1
|
||||||
selector {
|
selector {
|
||||||
match_labels = {
|
match_labels = {
|
||||||
app = "travel-blog"
|
app = "travel-blog"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue