Installing on ZFS

There is currently an issue surrounding using MicroK8s on a ZFS filesystem due
to the way containerd is configured. If you have installed MicroK8s on ZFS
you can fix this:

  1. Stop microk8s:

    microk8s stop
  2. Remove old state of containerd:

    sudo rm -rf /var/snap/microk8s/common/var/lib/containerd
  3. Configure containerd to use ZFS:
    Edit the file /var/snap/microk8s/current/args/containerd-template.toml
    replacing snapshotter = "overlayfs" with snapshotter = "zfs"

  4. Create new zfs dataset for containerd to use:

    zfs create -o 
  5. Restart microk8s:

    microk8s start