Kubernetes Volumes in Longhorn

Volumes in Longhorn are Kubernetes Volumes, they are created and managed as the Longhorn Manager.

The Longhorn Manager container runs on each host in the Longhorn cluster. as a Kubernetes DaemonSet. The Longhorn Manager handles the API calls from the UI or the Flex Volume and CSI Kubernetes plugins.

When the Longhorn manager is asked to create a volume, it creates a controller container on the host the volume is attached to as well as the hosts where the replicas will be placed. Replicas should be placed on separate hosts to ensure maximum availability.