docs/src/developer/e2e/kubernetes_test.md
This test verifies that youki works correctly as a container runtime in a Kubernetes environment using Kind (Kubernetes in Docker).
The test builds a custom Kind node image with youki, creates a cluster, and deploys nginx pods using a RuntimeClass that specifies youki as the runtime.
$ just test-kind
To clean up an existing Kind cluster first:
$ just clean-test-kind
In addition to the single-node test-kind flow above, there is a
multi-node variant that mirrors how youki would be installed on a real
Kubernetes cluster: the cluster nodes themselves stay as vanilla
kindest/node images, and a DaemonSet running on every node
installs youki onto the host and registers it with containerd at
runtime.
$ just test-kind-deploy
Or to only stand up the cluster + DaemonSet without the nginx smoke test:
$ just kind-deploy
Clean up:
$ just clean-test-kind-deploy