Skip to content

infra/k3s

Kubernetes bootstrap for the two servers: K3s with Traefik disabled, single-replica control plane. Used by make bootstrap.

If Kata Containers or HAMi misbehave on K3s containerd, the fallback is kubeadm.

The full profile needs three Kubernetes feature gates, for Agent Substrate, which kagent requires: ClusterTrustBundle, ClusterTrustBundleProjection and PodCertificateRequest, plus the API certificates.k8s.io/v1beta1. On the K3s server: --kube-apiserver-arg=feature-gates=<the three>=true, --kube-apiserver-arg=runtime-config=certificates.k8s.io/v1beta1=true, --kube-controller-manager-arg=feature-gates=..., --kubelet-arg=feature-gates=...; on every agent the --kubelet-arg. K3s v1.37.2 started this way in a local probe and ran the gateway, Jaeger, gVisor and OpenSandbox (docs/compatibility.md, P20). The other profiles do not need them.

Status: planned. There are no install scripts or configuration yet. The intended K3s flags and node labels are described in ../../docs/design.md.

In the full profile the GPU node is tainted at bootstrap, kubectl taint node gpu-0 nvidia.com/gpu=present:NoSchedule, so that Agent Substrate's node agent, whose chart has no node selector, never runs there (owner decision, 2026-11-28). The GPU workloads tolerate the taint.