Install K3s + CoCo
End-to-end bare-metal CoCo install on a single Ubuntu host using k3s and the upstream Confidential Containers chart.
This is an end-to-end install of a bare-metal Confidential Containers stack on a single Ubuntu 26.04 host, using only upstream tooling (k3s plus the upstream CoCo Helm chart) and the prebuilt EQTY notary PodVM — either the CPU initrd or the GPU-TDX image.raw. No repo checkout and no repo scripts are required.
PodVM images and drop-ins come from the deployment artifacts page.
Build order
- Kubernetes — single-node k3s.
- Kata / CoCo — upstream Confidential Containers Helm chart.
- EQTY items — point Kata at the prebuilt notary initrd (CPU) or
image.raw(GPU-TDX). - Signed workloads — sign pod manifests with
vcomp-coco-cli, deploy, and verify the notary.
Before you start
- A host with BIOS and platform setup already complete.
- Ubuntu 26.04 on the host.
- All commands run as root.
1. Kubernetes (k3s)
apt-get update && apt-get install -y curl
curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=v1.35.0+k3s1 sh -
export KUBECONFIG=/etc/rancher/k3s/k3s.yamlCoCo’s Kata install ships a containerd drop-in that k3s must import. Add a k3s containerd v3 template that pulls in the drop-in directory, then restart:
mkdir -p /var/lib/rancher/k3s/agent/etc/containerd/config-v3.toml.d
cat > /var/lib/rancher/k3s/agent/etc/containerd/config-v3.toml.tmpl <<'EOF'
imports = ["/var/lib/rancher/k3s/agent/etc/containerd/config-v3.toml.d/*.toml"]
{{ template "base" . }}
EOF
systemctl restart k3s
kubectl wait --for=condition=Ready node --all --timeout=120s2. Kata / CoCo (upstream Helm chart)
Install Helm, then the Confidential Containers operator and the kata-as-coco-runtime:
curl -fsSL https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
helm upgrade --install coco \
oci://ghcr.io/confidential-containers/charts/confidential-containers \
--version 0.21.0 \
--namespace coco-system --create-namespace \
--set kata-as-coco-runtime.k8sDistribution=k3sWait for the runtime installer to finish on the node:
kubectl -n coco-system rollout status ds/kata-as-coco-runtime --timeout=600s
kubectl -n coco-system logs -l name=kata-as-coco-runtime --tail=200 \
| grep -q "installation completed successfully" && echo "kata install done"At this point kubectl get runtimeclass should list kata-qemu-snp or kata-qemu-tdx, running the upstream Kata guest image.
3. Prepare for EQTY PodVM
mkdir -p /opt/eqty/podvm/current
DROPIN=/opt/kata/share/defaults/kata-containers/runtimes/qemu-tdx/config.d
mkdir -p "$DROPIN"
cat > "$DROPIN/60-custom-podvm-initrd.toml" <<'EOF'
[hypervisor.qemu]
image = ""
initrd = "/opt/eqty/podvm/current/initrd"
EOFmkdir -p /opt/eqty/podvm/current
DROPIN=/opt/kata/share/defaults/kata-containers/runtimes/qemu-snp/config.d
mkdir -p "$DROPIN"
cat > "$DROPIN/60-custom-podvm-initrd.toml" <<'EOF'
[hypervisor.qemu]
image = ""
initrd = "/opt/eqty/podvm/current/initrd"
EOFRestart Kubernetes
systemctl restart k3s
kubectl wait --for=condition=Ready node --all --timeout=120s