k3d-demo
k3d-demo copied to clipboard
Demo of k3d: Tool to run k3s (Kubernetes) in Docker
trafficstars
k3d-demo
Requirements
dockerk3d >= v5.5.0kubenscallable via thekubensbinarychromiumcallable via thechromiumbinaryHelm 3- (optional)
tilt - (optional)
drone
Resources
- https://k3d.io/
- https://github.com/rancher/k3d
- v4 Release Candidate: https://github.com/rancher/k3d/releases/tag/v5.0.0
- install e.g. via
wget -q -O - https://raw.githubusercontent.com/rancher/k3d/main/install.sh | TAG=v5.0.0 bash
- install e.g. via
Run
- Preparation (attention: clears all docker settings!):
make prep
Full Lifecycle
- Demo: Full k3d lifecycle and usage with a Python App using hot-reloading of code:
make demo
Multi-Server Cluster
- Demo: Multi-Server Setup:
make demo-multiserver
Config File Support
- Demo: Creating a cluster from a config file:
make demo-configfile
App-Reloading with Tilt and a k3d-managed registry
- Demo: Using k3d with a managed registry and Tilt for app-reloading:
make demo-tilt
Running k3d in CI
- Demo: Using k3d as a service in a Drone CI pipeline:
make demo-drone