Configure storage to retain application data on your K8s cluster
Check available disks
lsblk
on each node to find available disks and partitions to dedicate to Longhorn.Label nodes (Optional)
Add Longhorn repository
Install Longhorn
Verify installation
Check services
Set up port forwarding
Access dashboard
http://localhost:8080
in your browser to access the Longhorn UI. You’ll be taken to this dashboard:Check nodes
Define disk usage limits
Create StorageClass manifest
longhorn-storageclass.yaml
:Apply StorageClass
Set as default (Optional)
Create PVC manifest
longhorn-pvc.yaml
:Apply PVC
Verify PVC
Create Pod manifest
longhorn-pod.yaml
:Deploy Pod
Check Pod status