From 4b77e0535fd766be6fc6329f3201d69f977ad174 Mon Sep 17 00:00:00 2001 From: Simon Gerber Date: Mon, 30 Sep 2024 09:23:56 +0200 Subject: [PATCH] Adjust LimitRange min CPU to 1m This brings the LimitRange minimum CPU and memory requests in line with the fair use ratio (1:4) on cloudscale. --- class/defaults.yml | 2 +- .../appuio-cloud/appuio-cloud/01_agent/01_config_map.yaml | 2 +- .../appuio-cloud/appuio-cloud/01_agent/02_deployment.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/class/defaults.yml b/class/defaults.yml index a6f49b8..1883939 100644 --- a/class/defaults.yml +++ b/class/defaults.yml @@ -245,7 +245,7 @@ parameters: limits: "Container": min: - cpu: "10m" + cpu: "1m" memory: "4Mi" ephemeral-storage: "100Ki" default: diff --git a/tests/golden/defaults/appuio-cloud/appuio-cloud/01_agent/01_config_map.yaml b/tests/golden/defaults/appuio-cloud/appuio-cloud/01_agent/01_config_map.yaml index f210a99..2c37baa 100644 --- a/tests/golden/defaults/appuio-cloud/appuio-cloud/01_agent/01_config_map.yaml +++ b/tests/golden/defaults/appuio-cloud/appuio-cloud/01_agent/01_config_map.yaml @@ -34,7 +34,7 @@ data: "cpu": "10m" "memory": "100Mi" "min": - "cpu": "10m" + "cpu": "1m" "ephemeral-storage": "100Ki" "memory": "4Mi" "type": "Container" diff --git a/tests/golden/defaults/appuio-cloud/appuio-cloud/01_agent/02_deployment.yaml b/tests/golden/defaults/appuio-cloud/appuio-cloud/01_agent/02_deployment.yaml index 5c4e11e..19efac0 100644 --- a/tests/golden/defaults/appuio-cloud/appuio-cloud/01_agent/02_deployment.yaml +++ b/tests/golden/defaults/appuio-cloud/appuio-cloud/01_agent/02_deployment.yaml @@ -13,7 +13,7 @@ spec: template: metadata: annotations: - checksum/config: 609c91815282bc8a8fbed7b27a08f6f1 + checksum/config: 23ac239163c7dcc887ded3396424bde6 kubectl.kubernetes.io/default-container: agent labels: control-plane: appuio-cloud-agent