Skip to content

feat(k8s): add RuntimeClass gvisor for the runsc nodes - #5436

Merged
dan-petty merged 2 commits into
mainfrom
feat/5431-a-gvisor-runtimeclass-for-pods-that
Nov 13, 2026
Merged

dan-petty merged 2 commits into
mainfrom
feat/5431-a-gvisor-runtimeclass-for-pods-that

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Bottom line: the owner merges this. No pod uses the class until the homelab play installs runsc and labels a node, and no workload uses it before the measurement of #5434.

Add RuntimeClass gvisor (handler runsc) to the root kustomization. Its scheduling.nodeSelector is node-restriction.kubernetes.io/gvisor: "true", with no tolerations. NodeRestriction stops a kubelet from setting that key, so a node cannot label itself to attract these pods. Until a node has the label, a pod of the class stays Pending. An invariant test pins the object. k8s/README.md gives the class, the seccomp limit and the measurement gate (#5434, which also sets overhead.podFixed). ADR 0018 gets a "Fact out of date" line.

Closes #5431

Change: openspec/changes/archive/2026-11-13-5431-a-gvisor-runtimeclass-for-pods-that/

The root kustomization declares RuntimeClass gvisor with handler runsc.
Its node selector sandbox.devops.io/gvisor=true sends a pod of the class
only to a node where the infra repository installed runsc. An invariant
test pins the object. k8s/README.md documents the class and its limits,
and ADR 0018 gets a Status History line for the fact that changed.
@dan-petty dan-petty added type/feature Type feature: a new function scope/k8s Kubernetes commands, Helm charts, pods, services, and policies labels Nov 13, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Check results

Head commit: f631cb65fe9b779b4d7e2961ed943c29c793dc08

Check Conclusion Link
Tests & Coverage success run
devops-cli success run
zizmor success run
trivy-config success run
CodeQL success run
Plan Check skipped run
Test Job Duration skipped run
Dependency Freshness skipped run
Tests on Main skipped run
Analyze (actions) success run
Tests & Coverage (shard 1 of 4) success run
Static Analysis success run
Changed-Test Independence success run
Design Tokens success run
Docs Site Build success run
Service Image success run
Analyze (python) success run
Tests & Coverage (shard 3 of 4) success run
Tests & Coverage (shard 2 of 4) success run
Tests & Coverage (shard 4 of 4) success run
Image Pins success run
MCP Server Image success run
Runner Image success run
Semantic PR title success run

Skipped check: Plan Check
Skipped check: Test Job Duration
Skipped check: Dependency Freshness
Skipped check: Tests on Main

@dan-petty
dan-petty marked this pull request as ready for review November 13, 2026 16:01
@dan-petty
dan-petty merged commit 0d9ffa1 into main Nov 13, 2026
24 checks passed
@dan-petty
dan-petty deleted the feat/5431-a-gvisor-runtimeclass-for-pods-that branch November 13, 2026 16:19
dan-petty pushed a commit that referenced this pull request Nov 13, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.130.0](v0.129.1...v0.130.0)
(2026-11-13)


### Features

* **k8s:** add RuntimeClass gvisor for the runsc nodes
([#5436](#5436))
([0d9ffa1](0d9ffa1))
* **roadmap:** make the attempt limits of the failing jobs settings
([#5490](#5490))
([a13e520](a13e520)),
closes [#5440](#5440)


### Bug Fixes

* **infra:** a plan shows a skip by a check-mode when as unchecked
([#5442](#5442))
([499b42c](499b42c))
* **infra:** the apply gate leaves out alerts of offline nodes
([#5478](#5478))
([3f0d0f0](3f0d0f0))
* **roadmap:** a named fix-plan run can skip the 6-hour wait
([#5459](#5459))
([94a1999](94a1999)),
closes [#5413](#5413)
* **roadmap:** a review finding must name a part of the plan
([#5418](#5418))
([34cdf12](34cdf12))
* **roadmap:** the stage gate log names each refused finding
([#5441](#5441))
([47b1ec5](47b1ec5))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/k8s Kubernetes commands, Helm charts, pods, services, and policies type/feature Type feature: a new function

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(k8s): a gVisor RuntimeClass for pods that run untrusted code

1 participant