[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:
parent
ecc3445860
commit
beec5acbc7
2 changed files with 19 additions and 2 deletions
|
|
@ -63,7 +63,7 @@ collabora:
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: "2"
|
cpu: "16"
|
||||||
memory: 6Gi
|
memory: 6Gi
|
||||||
requests:
|
requests:
|
||||||
cpu: 100m
|
cpu: 100m
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,23 @@ resource "kubernetes_namespace" "nextcloud" {
|
||||||
"istio-injection" : "disabled"
|
"istio-injection" : "disabled"
|
||||||
tier = local.tiers.edge
|
tier = local.tiers.edge
|
||||||
"resource-governance/custom-limitrange" = "true"
|
"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"
|
memory = "64Mi"
|
||||||
}
|
}
|
||||||
max = {
|
max = {
|
||||||
cpu = "4"
|
cpu = "16"
|
||||||
memory = "8Gi"
|
memory = "8Gi"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue