HACKER Q&A
📣 roboben

Bare-metal replicated storage for a small K8s cluster


Hey lovely HN people,

I am running a small and simple 3 node microk8s cluster on standard VPS and looking for a reliable (read replicated to all nodes) simple storage solution. I can create dedicated partitions, I cannot have dedicated disks for block storage. I want to easily add and remove nodes without migrating data around.

What’s the simplest way of doing that? I looked into OpenEBS but cstor needs disks and mayastor sounds massive (runs its own etcd etc) and jiva I don’t know.

Any other ideas?

Thanks!


  👤 warrenm Accepted Answer ✓
Does your app (or apps) running on K8s support object storage (ie S3-compatible)? You might consider running MinIO, if that's the case - https://min.io

👤 warrenm
Can your containers mount NFS points?

If so, just run a traditional file server, and export data via NFS (or CIFS)

Beware, though, multiple points writing to the same file at the same time is undefined behavior over NFS