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 <moriarti@cp.if.ua>
This commit is contained in:
Marian Koreniuk committed 2026-12-02 21:56:12 +01:00
1 parent a6928c765d
commit eeb0072ef2
1 file changed
+5 -1
@@ -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