[ci skip] nextcloud: bump CPU limit to 16, add custom ResourceQuota

CPU was pegged at 2000m/2000m (100% throttled). Add custom-quota
opt-out label and ResourceQuota allowing 32 CPU limits to accommodate
the 16 CPU container limit plus sidecar defaults.
This commit is contained in:
Viktor Barzin 2026-03-01 17:41:18 +00:00
parent 80dfc58fea
commit 4558688baf
2 changed files with 19 additions and 2 deletions

View file

@ -63,7 +63,7 @@ collabora:
resources:
limits:
cpu: "2"
cpu: "16"
memory: 6Gi
requests:
cpu: 100m

View file

@ -18,6 +18,23 @@ resource "kubernetes_namespace" "nextcloud" {
"istio-injection" : "disabled"
tier = local.tiers.edge
"resource-governance/custom-limitrange" = "true"
"resource-governance/custom-quota" = "true"
}
}
}
resource "kubernetes_resource_quota" "nextcloud" {
metadata {
name = "nextcloud-quota"
namespace = kubernetes_namespace.nextcloud.metadata[0].name
}
spec {
hard = {
"requests.cpu" = "4"
"requests.memory" = "8Gi"
"limits.cpu" = "32"
"limits.memory" = "16Gi"
pods = "10"
}
}
}
@ -39,7 +56,7 @@ resource "kubernetes_limit_range" "nextcloud" {
memory = "64Mi"
}
max = {
cpu = "4"
cpu = "16"
memory = "8Gi"
}
}