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.
๐ Related
Kubernetes โ Container orchestration platform
Helm โ Kubernetes package manager
Rancher โ Longhorn is part of the Rancher ecosystem
๐ Explore More
๐ Longhorn GitHub
๐ Longhorn UI
๐ Tags
#Longhorn
#Kubernetes
#Helm
#Storage
#CloudNative
#Volumes
#DistributedSystems