[ci skip] add resource limits to paperless-ngx and stirling-pdf to prevent OOMKills

Both services were hitting the 256Mi Kyverno LimitRange default and getting
OOMKilled. Set explicit limits to 1Gi memory for both.
This commit is contained in:
Viktor Barzin 2026-02-28 19:07:59 +00:00
parent 5e177a8889
commit 5a62d7b9a5
2 changed files with 22 additions and 0 deletions

View file

@ -110,6 +110,17 @@ resource "kubernetes_deployment" "paperless-ngx" {
mount_path = "/usr/src/paperless/data"
}
resources {
requests = {
cpu = "100m"
memory = "256Mi"
}
limits = {
cpu = "2"
memory = "1Gi"
}
}
port {
container_port = 8000
}

View file

@ -44,6 +44,17 @@ resource "kubernetes_deployment" "stirling-pdf" {
container {
image = "stirlingtools/stirling-pdf:latest"
name = "stirling-pdf"
resources {
requests = {
cpu = "100m"
memory = "256Mi"
}
limits = {
cpu = "2"
memory = "1Gi"
}
}
port {
container_port = 8080
}