# Longhorn Installation with Helm

# What is Longhorn?

Longhorn은 Kubernetes에서 활용할 수 있는 오픈소스 분산 블록 스토리지 시스템(distributed block storage system)이며, Rancher Lab에서 개발되었습니다.

Longhorn Dashboard Screenshot
Longhorn Dashboard Screenshot

# Prerequisites

  • Kubernetes v1.18+ is installed using either helm v3.2.0+.
  • (All Nodes) folder (mkdir -p /data/longhorn)
  • (All Nodes) iscsi (apt install open-iscsi -y)

# Install

helm repo add longhorn https://charts.longhorn.io
helm repo update longhorn
mkdir -p /data/longhorn
helm install longhorn longhorn/longhorn \
    --create-namespace \
    --namespace longhorn-system \
    --set defaultSettings.defaultDataPath="/data/longhorn" \
    --set defaultSettings.defaultDataLocality="best-effort"
kubectl patch storageclass longhorn -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}'

That's it! 🎉


# memo