[ASAP] Longhorn for K3S on Fedora cloud 38
It’s RedHat CTF infrastructure time of year again. For a challenge I needed several pods sharing a volume. A hostPath
volume would work if I only had one node but I have 3; some networked volume is required. Luckily, K3S supports Longhorn, a distributed block storage system.
Setting Longhorn up is straightforward… if it weren’t for the missing bits. Symptoms include the storage class not showing up, the Longhorn UI appearing degraded, and the Longhorn manager pods loop-crashing. All of those is due to missing software on Fedora cloud 38.
Here is what needs to be done on the K3S nodes:
- Install
iscsi-initiator-utils
- Start and Enable
iscsid.service
- Install
nfs-utils
(or you won’t be able to mount a volume hosted on a different node)
Finally connect to the Longhorn UI (and create a test PersistentVolumeClaim+Pod volumeMount, cf. K3S Longhorn docs):