Differences between revisions 3 and 4
Revision 3 as of 2022-02-06 00:27:02
Size: 1393
Editor: PieterSmit
Comment:
Revision 4 as of 2022-02-06 00:27:29
Size: 1371
Editor: PieterSmit
Comment:
Deletions are marked like this. Additions are marked like this.
Line 27: Line 27:
CategoryK8sKubernetes CategoryK8sKubernetes CategoryK8sKubernetes

k8s/k3s/k3d

  • 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
      ~$ 


CategoryK8sKubernetes

k8s/k3s/k3d (last edited 2022-03-20 02:20:48 by PieterSmit)