Public Cloud
If you are running on a major public cloud, use their block storage. It is easy and automatic.Storage Clusters
Sidero Labs recommends having separate disks (separate from the Talos install disk) dedicated for storage.Redundancy, scaling capabilities, reliability, speed, maintenance load, and ease of use are all factors you must consider when managing your own storage. Running a storage cluster can be a very good choice when managing your own storage. The following projects are known to work with Talos Linux and provide good options, depending on your situation. MayaStor: Ultra-low latency and high-performance workloads. Longhorn: Simple, reliable, easy-to-use Kubernetes storage with easy replication and snapshots. Rook/Ceph: Enterprise-scale, distributed, multi-tenant storage (block, file, and object storage) Also, if you need both mount-once and mount-many capabilities, Ceph is your answer.
Please note that most people should not use mount-many semantics. NFS is pervasive because it is old and easy, not because it is a good idea. There are all manner of locking, performance, change control, and reliability concerns inherent in any mount-many situation, so we strongly recommend you avoid this method.
Longhorn
Documentation for installing Longhorn on Talos Linux is available on the Longhorn site.Rook/Ceph
Ceph is a mature open source storage system, that can provide almost any type of storage. It scales well, and enables the operator to easily add and remove storage with no downtime. It comes bundled with an S3-compatible object store; CephFS, a NFS-like clustered filesystem; and RBD, a block storage system. With the help of Rook, the vast majority of the complexity of Ceph is hidden away, allowing you to control almost everything about your Ceph cluster from fairly simple Kubernetes CRDs. However, Ceph can be rather slow for small clusters. It relies heavily on CPUs and massive parallelization for performance. If your cluster is small, just running Ceph may eat up a significant amount of the resources you have available. Troubleshooting Ceph can be difficult if you do not understand its architecture. There are very good tools for inspection and debugging, but this is still frequently seen as a concern.OpenEBS Mayastor replicated storage
Mayastor is an OpenEBS project built in Rust utilizing the modern NVMEoF system.Deploy Mayastor
Mayastor has documentation specific to installing on Talos Linux in their official documentation Installing on Talos Linux requires patching the Pod Security policies, enabling Huge Page support, and labels. This is all covered in the Mayastor documentation, We need to disable the init container that checks for thenvme_tcp
module, since Talos has that module built-in.
Create a helm values file mayastor-values.yaml
with the following contents:
Piraeus / LINSTOR
Install Piraeus Operator V2
There is already a how-to for Talos: LinkCreate first storage pool and PVC
Before proceeding, install linstor plugin for kubectl: https://github.com/piraeusdatastore/kubectl-linstor Or use krew:kubectl krew install linstor
NFS
NFS is slow, has all kinds of bottlenecks involving contention, distributed locking, single points of service, and more. However, it is supported by a wide variety of systems, such as NetApp storage arrays. The NFS client is part of thekubelet
image maintained by the Talos team.
This means that the version installed in your running kubelet
is the version of NFS supported by Talos.
You can reduce some of the contention problems by parceling Persistent Volumes from separate underlying directories.