One of the most challenging topics related to deploying containerized applications is data management. There are various approaches to managing container volumes in a clustered environment. Some designs are simple and straightforward, but lack flexibility. Other designs are highly sophisticated, but have lots of moving parts to align. Most of the time the answer is somewhere in the middle.
Data management
Host volume mounts
One simple and straightforward approach to handling container data persistence in a cluster is with a host-mounted volume. In a nutshell, the orchestrator randomly schedules the container to run on node A in your cluster. When a container runs, it mounts a specified directory on node A's filesystem...