k3d is a lightweight way to create temporary Kubernetes test environments by running k3s nodes inside Docker containers. It fits naturally into a CI/CD workflow when a deployment should be checked against the Kubernetes API before production. section 16.4
A k3d test cluster can help verify:
- Whether release images deploy without errors. section 16.4
- Whether Pods distribute correctly across multiple nodes. section 16.4
- Whether application components communicate correctly inside Kubernetes. section 16.4
Create a CI test cluster
A GitHub Actions workflow can use AbsaOSS/k3d-action@v2 to create a one-node cluster named ch16, disable the load balancer and selected default services, then select it with kubectl config use-context k3d-ch16.


