EQTY LabDocs

Install K3s + CoCo

End-to-end bare-metal CoCo install on a single Ubuntu host using k3s and the upstream Confidential Containers chart.

View as Markdown

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

  1. Kubernetes — single-node k3s.
  2. Kata / CoCo — upstream Confidential Containers Helm chart.
  3. EQTY items — point Kata at the prebuilt notary initrd (CPU) or image.raw (GPU-TDX).
  4. Signed workloads — sign pod manifests with vcomp-coco-cli, deploy, and verify the notary.

Before you start

1. Kubernetes (k3s)

bash
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.yaml

CoCo’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:

bash
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=120s

2. Kata / CoCo (upstream Helm chart)

Install Helm, then the Confidential Containers operator and the kata-as-coco-runtime:

bash
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=k3s

Wait for the runtime installer to finish on the node:

bash
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

bash
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"
EOF
bash
mkdir -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"
EOF

Restart Kubernetes

bash
systemctl restart k3s
kubectl wait --for=condition=Ready node --all --timeout=120s