The following is a docker-compose k3s configuration, with a script to pre-populate images in the cluster, allowing complete tear-down and rebuild very quickly.
This could be useful for spinning up a small cluster during CI jobs, as it allows the images to be cached rather than pulled into the newly built cluster for each and every job.
Results from local testing:
No preloaded images | Preloaded images | |
---|---|---|
Time to bring cluster up | ~3 minutes | ~53 seconds |