[ci skip] fix OOMKill: prometheus (4Gi), kyverno-reports (512Mi), grampsweb (512Mi)

- Prometheus server: explicit 1Gi req / 4Gi limit (was inheriting 512Mi LimitRange default)
- Kyverno reports controller: 128Mi req / 512Mi limit (was 128Mi Helm default)
- Grampsweb: 256Mi req / 512Mi limit for both containers (was 256Mi LimitRange default)
This commit is contained in:
Viktor Barzin 2026-03-02 21:39:14 +00:00
parent ea67939525
commit 31f3fc0773
No known key found for this signature in database
GPG key ID: 0EB088298288D958
3 changed files with 41 additions and 0 deletions

View file

@ -182,6 +182,17 @@ resource "kubernetes_deployment" "grampsweb" {
mount_path = "/tmp"
sub_path = "tmp"
}
resources {
requests = {
cpu = "50m"
memory = "256Mi"
}
limits = {
cpu = "500m"
memory = "512Mi"
}
}
}
container {
@ -237,6 +248,17 @@ resource "kubernetes_deployment" "grampsweb" {
mount_path = "/tmp"
sub_path = "tmp"
}
resources {
requests = {
cpu = "50m"
memory = "256Mi"
}
limits = {
cpu = "500m"
memory = "512Mi"
}
}
}
volume {

View file

@ -27,6 +27,18 @@ resource "helm_release" "kyverno" {
}
}
reportsController = {
resources = {
limits = {
memory = "512Mi"
}
requests = {
cpu = "100m"
memory = "128Mi"
}
}
}
admissionController = {
replicas = 2

View file

@ -121,6 +121,13 @@ server:
existingClaim: prometheus-iscsi-pvc
# storageClass: rook-cephfs
retention: "52w"
resources:
requests:
cpu: 200m
memory: 1Gi
limits:
cpu: "2"
memory: 4Gi
strategy:
type: Recreate
baseURL: "https://prometheus.viktorbarzin.me"