Longhorn

๐Ÿฎ Longhorn

[!info]
Longhorn is a lightweight, reliable, and easy-to-use distributed block storage system for Kubernetes.
It's designed to provide persistent volumes in cloud-native environments.

๐Ÿ”— Project Homepage: Longhorn Homepage
๐Ÿ“š Docs: Longhorn Docs


๐Ÿ” Overview

  • Type: Cloud-native block storage

  • Use Case: Kubernetes persistent storage

  • Deployment: #Helm-chart (recommended)

  • Key Features:

    • Replication across nodes

    • Incremental backups and snapshots

    • UI and CLI management

    • CRD-based custom resource handling


๐Ÿ› ๏ธ Features

  • ๐Ÿš€ Lightweight and easy to install

  • ๐Ÿงฑ Supports incremental snapshot and backup

  • ๐Ÿ” Synchronous block-level replication

  • ๐Ÿ–ฅ๏ธ Built-in UI for volume and backup management

  • โš™๏ธ Works with standard Kubernetes volume primitives


๐Ÿƒ Getting Started

๐Ÿ“ฆ Install Longhorn using Helm

[!tip] Customize Helm values by reviewing values.yaml

helm repo add longhorn https://charts.longhorn.io
helm repo update
helm install longhorn longhorn/longhorn

๐Ÿ”ง Customization and Configuration

[!example]+ Helm Values Example You can override values like storage class name, default replica count, or node selectors in your custom values.yaml.

defaultSettings:
  defaultReplicaCount: 3
  defaultDataPath: "/var/lib/longhorn"

๐Ÿ› ๏ธ Troubleshooting

[!question]- Why is my volume stuck in detached state?

  • Check if the node is available and has disk space.

  • Look into the longhorn-manager logs for possible issues.

  • Ensure the Longhorn UI shows the node as Ready.

[!warning]
Make sure default Kubernetes storage class is not conflicting with Longhorn if you're using multiple storage providers.


  • Kubernetes โ€“ Container orchestration platform

  • Helm โ€“ Kubernetes package manager

  • Rancher โ€“ Longhorn is part of the Rancher ecosystem


๐ŸŒ Explore More


๐Ÿ“š Tags

  • #Longhorn

  • #Kubernetes

  • #Helm

  • #Storage

  • #CloudNative

  • #Volumes

  • #DistributedSystems