Longhorn CSI on K3s
In this section, you'll learn how to install Longhorn on a K3s Kubernetes cluster. K3s is a fully compliant Kubernetes distribution that is easy to install, using half the memory, all in a binary of less than 50mb.
Requirements
- Longhorn v0.7.0 or higher.
open-iscsi
oriscsiadm
installed on the node.
Instruction
Longhorn v0.7.0 and above support k3s v0.10.0 and above only by default.
If you want to deploy these new Longhorn versions on versions before k3s v0.10.0, you need to set --kubelet-root-dir
to <data-dir>/agent/kubelet
for the Deployment longhorn-driver-deployer
in longhorn/deploy/longhorn.yaml
.
data-dir
is a k3s
arg and it can be set when you launch a k3s server. By default it is /var/lib/rancher/k3s
.