Skip to content

Epic: P6 on Kubernetes — process manager, relay, Redis and control plane as K8s workloads; only P4 on a VM/bare metal #426

Closed
3 of 3 issues completed

Description

@pdettori

Epic: P6 on Kubernetes, with only P4 on a VM or bare metal

The scenario

The P6 demo (#370) runs everything on one KVM VM under systemd and podman. This epic runs every part of P6 as an ordinary Kubernetes workload: the supervisor with its forked worker pool, the relay, Redis, the MU1 control plane, and container sandboxes. Only the P4 Firecracker microvm-worker stays on a KVM host (a VM or bare metal) outside the cluster, dialing the in-cluster relay.

Relation to RA1's "deprecate K8s"

RA1 (docs/specs/2026-09-24-ra1-density-cutover-and-repo-rearchitecture-design.md §4) deprecates the Knative/KEDA path: the Knative Service, KEDA, KubectlTransport and pod-exec sandboxes. This epic uses none of them. It runs the P6 process model and GrpcRelayTransport, which do not depend on the substrate, with Kubernetes as the substrate. Record that distinction in an ADR before slice 1 merges, so the later deprecation does not sweep this up. Done: ADR-0037, merged with slice 1.

Precedent

deploy/compose/ already runs these exact processes in containers, from the same image and with the same env vars. deploy/vm/ carries the hardening and secret handling to translate. So the work is mostly deployment work: two small relay/supervisor code changes and one real harness change (slice 3).

Where things stand (2026-10-05)

Children (dependency order)

Each child is written so a planner can start it in a fresh session.

Constraints that shape the design

  • The supervisor's front door must be L4. Hand-off, routing and 429 admission happen once per connection. An L7 proxy that pools connections (Ingress, an edge-terminated Route, a mesh sidecar, Knative's queue-proxy) silently defeats them.
  • The relay is single-replica (presence-only), so it is a Recreate Deployment, and a restart drops every attached sandbox.
  • Until slice 3: one sandbox tier per stack, and one P4 host per stack.

Not in scope

Autoscaling (HPA/KEDA), Vault, P4 guest networking (#277), MI1 owner binding (S5).

Sub-issues

Sub-issues

3 of 3 Issues completed
Loading 3 sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions