k3d is a lightweight wrapper to run k3s (Rancher Lab’s minimal Kubernetes distribution) in docker.
k3d makes it very easy to create single- and multi-node k3s clusters in docker, e.g. for local development on Kubernetes.
It’s as simple as (also install kubectl so you can interact with your kubernetes cluster):
Launch
Create a default.yml with the following content:
This will specify the version of k3s and create a local docker registry (useful for local tests).
Then execute the following command:
Issues
✅ Everything fails after some time
Success
The issue comes from the fact k3d has some limit on disk storage (5% if my memory serves me right). And I did not have much disk space, so the Pod were failing one after the other once I did not have much space disk left…
After some time (a few hours), every pods are in failure state and cannot be restored.
Not sure if it was because I was updating my home-manager at the same time…