k8s/k3s/k3d
Links k8s/MiniKube
- k3s is light weight kubernetes from Rancher, that combines most of the k8s management components into singe go binary.
- This allows for low memory footprint and makes it usable on small systems e.g. Raspbery Pi4
- k3d is docker version of k3s, great for local testing with multiple masters and workers.
- One gotcha (2021-11) is that on btrfs, it needs access to /dev/mapper
install k3d https://k3d.io
curl -s https://raw.githubusercontent.com/rancher/k3d/main/install.sh | bash
After installing k3d and docker, Run with
k3d cluster create test -s 3 -a 3 -v /dev/mapper:/dev/mapper
Then the normal kubectl can be used to operate the docker k8s cluster
Installed using apt
$ kubectl get nodes NAME STATUS ROLES AGE VERSION k3d-test-agent-0 Ready <none> 74s v1.22.6+k3s1 k3d-test-agent-1 Ready <none> 74s v1.22.6+k3s1 k3d-test-agent-2 Ready <none> 74s v1.22.6+k3s1 k3d-test-server-0 Ready control-plane,etcd,master 111s v1.22.6+k3s1 k3d-test-server-1 Ready control-plane,etcd,master 94s v1.22.6+k3s1 k3d-test-server-2 Ready control-plane,etcd,master 79s v1.22.6+k3s1 ~$