Skip to content

fix(helm): set control plane resource budgets - #6018

Open
SDAChess wants to merge 2 commits into
fix/6013-trivy-hardening/SDAChessfrom
fix/6016-resource-defaults/SDAChess
Open

SDAChess wants to merge 2 commits into
fix/6013-trivy-hardening/SDAChessfrom
fix/6016-resource-defaults/SDAChess

Conversation

@SDAChess

@SDAChess SDAChess commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Set configurable gateway and shared-supervisor CPU/memory budgets instead of leaving both unbounded. This removes the missing-resource Trivy findings from all scanned chart profiles.

Stack: follows #6014; review this PR against its base branch.

Related Issue

Closes #6016

Changes

  • Gateway requests 500m CPU / 512Mi, limits 2 CPUs / 2Gi; shared supervisors request 250m / 768Mi, limits 1 CPU / 1.5Gi.
  • Preserve explicit overrides and null removal, with chart coverage for both gateway workload kinds and supervisor budgets.
  • Explain sizing for log retention, traffic and failover. The 10,000-sandbox example explicitly leaves gateway limits to the operator.

The requests follow existing chart guidance. The supplied performance measurements at 624aceea3 show roughly 414m gateway CPU and 237m supervisor CPU per 100 sandboxes under mixed load; separate heap profiles show about 4Mi of retained gateway log-tail heap per used sandbox. These inform initial budgets, not a maximum supported workload or a new capacity guarantee.

Release Notes

Upgrades that adopt chart defaults now apply resource requests and limits. Empty maps retain defaults; use resources: null / supervisor.resources: null to omit budgets, or set their limits to null to omit limits. Size budgets before increasing sandbox count.

Testing

  • 519 gateway chart tests and 7 workspace tests pass.
  • All chart fixture lint/render checks and generated README checks pass.
  • Complete mise run helm:test passes, including the Rust loader, resource coherence, ownership and pool scaling checks. The first CI run exposed an obsolete shell assertion expecting no supervisor resources; it now verifies defaults and explicit removal.
  • Full-severity Trivy scans across defaults, static manifests and 14 profiles remove KSV-0011/0015/0016/0018 with no new findings.
  • Markdown lint passes; Fern reports zero errors and three existing warnings.
  • Combined stack plus current main: 524 gateway tests, 7 workspace tests and all Helm lint/render checks pass.
  • Full combined-stack Kubernetes E2E, HA and credential-driver E2E running on ci(trivy): scope false-positive exceptions #6021.

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)
  • Deployment guidance updated

Signed-off-by: Simon Scatton <sscatton@nvidia.com>
@github-actions github-actions Bot added the state:accepted A maintainer decided OpenShell should pursue this issue label Nov 26, 2026
@github-actions

Copy link
Copy Markdown

@SDAChess SDAChess added area:drivers Compute and secret drivers, host OS/architecture support, backend isolation, and lifecycle. topic:kubernetes Kubernetes operators, CRDs, deployment controllers, and native Kubernetes API integration. topic:operability Installing/configuring deployments, upgrades, backup/restore, diagnostics, and maintenance. topic:performance Startup time, latency, throughput, overhead, scalability, benchmarking, and rate limiting. topic:security Vulnerability management, security analysis/auditing, bypass detection, and abuse prevention. labels Nov 26, 2026
Signed-off-by: Simon Scatton <sscatton@nvidia.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:drivers Compute and secret drivers, host OS/architecture support, backend isolation, and lifecycle. state:accepted A maintainer decided OpenShell should pursue this issue topic:kubernetes Kubernetes operators, CRDs, deployment controllers, and native Kubernetes API integration. topic:operability Installing/configuring deployments, upgrades, backup/restore, diagnostics, and maintenance. topic:performance Startup time, latency, throughput, overhead, scalability, benchmarking, and rate limiting. topic:security Vulnerability management, security analysis/auditing, bypass detection, and abuse prevention.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant