Setting up Longhorn for storage
In terms of persistent information, you will find two types of containers, stateless and stateful containers. A stateless or ephemeral container doesn't persist information generated inside a container. A stateful container can persist the information even when this is deleted. K3s includes, by default, a way to persist data using a storage type (called storage class in Kubernetes) called local-path. This storage is a basic and pretty lightweight implementation, designed for edge devices. A common feature used on Kubernetes is to have a persistent volume claim that allows your pods to consume (write and read data) from different nodes. And this is a persistence volume configuration with the access mode key, set as ReadWriteMany (RWX). This feature is often used in production scenarios and it's pretty important because it enables you to share information from your different services. Longhorn provides this feature in a pretty lightweight presentation...