homek8s/apps/base/forgejo/kata-runtimeclass.yaml

27 lines
1.2 KiB
YAML
Raw Normal View History

---
# Kata Containers microVM RuntimeClass for the CI capsule (card t_8aa4af50).
#
# What this buys and what it does NOT: a pod using this class still declares
# `privileged: true` — a nested dockerd needs CAP_SYS_ADMIN + CAP_NET_ADMIN in
# the pod spec, and PSA `baseline` forbids exactly those two, so `ci-runners`
# stays at `enforce: privileged` (docs/pod-security.md). What changes is what
# privilege applies to: the container runs inside a QEMU/KVM microVM, so
# "privileged" means root in a VM with no host namespaces, no host kernel and
# only the volumes the pod mounts — an escape has to beat KVM first.
#
# The handler name `kata-qemu` must exist in containerd on every node that can
# run a pod with this class (drop-in /etc/containerd/conf.d/50-kata.toml,
# kata-static 4.4.0 under /opt/kata). Installed on rpi 2026-11-27; not yet on
# siriussec — that is why only the rpi-pinned deploy runner uses this class.
apiVersion: node.k8s.io/v1
kind: RuntimeClass
metadata:
name: kata-qemu
handler: kata-qemu
# VM overhead is charged to the pod so the scheduler accounts for it. The VM
# itself is sized from the pod's memory limits (2Gi here) plus the kata
# agent/kernel.
overhead:
podFixed:
cpu: 250m
memory: 160Mi