3 ms·
I've done exactly that. It wasn't fun. RHEL, k3s, ansible, Longhorn, metallb, to name a few. Storage is the fun part.
by bradwood 4y ago
I've done exactly that. It wasn't fun. RHEL, k3s, ansible, Longhorn, metallb, to name a few.
Storage is the fun part.
- MuffinFlavored 4y agoI was playing around with a local Elasticsearch cluster and I couldn't figure out how to "do" k8s storage. Some kind of like... shared NFS volume or something maybe? Could you spread some tips from your experiences?
- mschuster91 4y agoYeah, NFS is your best bet if you are on a lab enviroment. Mount the volume at each host, then use hostPath to mount it in the pods (https://kubernetes.io/docs/concepts/storage/volumes/#hostpath https://kubernetes.io/docs/concepts/storage/volumes/#hostpat...).
- fireflash38 4y agoLonghorn is honestly pretty easy to get up & going for backing a PersistentVolume, which you can then mount however you want. K3S has some local storage options too, but that's of mixed usage. Or you just do a hostpath + NFS if you want something that has as little Kubernetes magic as possible.
- bradwood 4y agoWe used a large amount of local physical storage spread pretty evenly over the machines in the cluster and then gave this to Longhorn to manage. It pretty much takes care of everything else. But does require some preventative TLC