From 3f4c4ea19f980149368c9feff378254ca5625c00 Mon Sep 17 00:00:00 2001 From: Francois Andrieu Date: Wed, 10 Apr 2024 18:34:29 +0200 Subject: [PATCH] datanommer: set memory limit to 1Gi For an unknown reason on staging, the datanommer pod overloads the node memory and takes down all the running workload with it. This set a memory limit to 1Gi (pod takes ~200Mi on prod) to avoid crashing the compute node (and other workload with it) when that happens. --- roles/openshift-apps/datanommer/templates/deploymentconfig.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roles/openshift-apps/datanommer/templates/deploymentconfig.yml b/roles/openshift-apps/datanommer/templates/deploymentconfig.yml index 703fd8576f..101a566add 100644 --- a/roles/openshift-apps/datanommer/templates/deploymentconfig.yml +++ b/roles/openshift-apps/datanommer/templates/deploymentconfig.yml @@ -30,6 +30,9 @@ spec: imagePullPolicy: Always ports: - containerPort: 8080 + resources: + limits: + memory: 1Gi volumeMounts: - name: fedora-messaging-config-volume mountPath: "/etc/fedora-messaging"