[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:
parent
5e177a8889
commit
5a62d7b9a5
2 changed files with 22 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue