Re:Ask HN: What is your Kubernetes nightmare?
by MuffinFlavored on Monday June 27, 2022 @12:52PM
(#31897277)
I 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?
Re:Ask HN: What is your Kubernetes nightmare?
by fireflash38 on Monday June 27, 2022 @01:19PM
(#31897677)
Longhorn 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.
Re:Ask HN: What is your Kubernetes nightmare?
by mschuster91 on Monday June 27, 2022 @12:54PM
(#31897307)
Yeah, 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/#hostpat...).
Re:Ask HN: What is your Kubernetes nightmare?
by bradwood on Thursday June 30, 2022 @11:41AM
(#31934078)
We 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
Storage is the fun part.