From eeb0072ef200d409281d6c38965e13fb1ceadd24 Mon Sep 17 00:00:00 2001 From: Marian Koreniuk Date: Sat, 7 Nov 2026 23:33:24 +0100 Subject: [PATCH] fix(cluster-api): raise the capmox manager memory limit to 512Mi capmox reads the bootstrap data Secret through the controller-runtime cached client, so provisioning the first machine starts an informer over every Secret in the management cluster. On a Cozystack management cluster most of those are Helm release revisions. On a cluster with 1236 Secrets (87 MB as JSON, 706 of them Helm release revisions) the manager was OOMKilled at the 256Mi limit while provisioning a worker, with both capmox v0.7.7 and v0.9.2. The last working set before the kills was 232 MiB (v0.7.7) and 255 MiB (v0.9.2); the same manager without the Secret cache uses 19 MiB. 512Mi is twice the last measured working set. The request stays at 64Mi. The limit can come back down once capmox stops caching Secrets. Assisted-by: LLM Signed-off-by: Marian Koreniuk --- .../templates/providers.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/system/capi-providers-infraprovider-proxmox/templates/providers.yaml b/packages/system/capi-providers-infraprovider-proxmox/templates/providers.yaml index 543df612a..15eb25e5b 100644 --- a/packages/system/capi-providers-infraprovider-proxmox/templates/providers.yaml +++ b/packages/system/capi-providers-infraprovider-proxmox/templates/providers.yaml @@ -23,7 +23,11 @@ spec: resources: limits: cpu: 500m - memory: 256Mi + # capmox caches every Secret in the cluster once it provisions a + # machine; 256Mi was OOMKilled with 1236 Secrets (87 MB as JSON). + # Can come back down once a capmox release includes + # https://github.com/ionos-cloud/cluster-api-provider-proxmox/pull/958 + memory: 512Mi requests: cpu: 10m memory: 64Mi