Longhorn Installation Guide

Prerequisites:

  1. Kubernetes cluster: Ensure that each node fulfills the installation requirements.

  2. Your workstation: Install Helm v3.0 or later

Installing Longhorn

  1. Add the Longhorn Helm repository:
    helm repo add longhorn https://charts.longhorn.io
    
  2. Fetch the latest charts from the repository:
    helm repo update
    
  3. Install Longhorn in the longhorn-system namespace.
    helm install longhorn longhorn/longhorn --namespace longhorn-system --create-namespace --version 1.6.2
    
  4. To confirm that the deployment succeeded, run:
    kubectl -n longhorn-system get pod
    

Note: To enable access to the Longhorn UI, you must set up an Ingress controller. Authentication to the Longhorn UI is not enabled by default.

Before deploying the 4px setup, ensure to follow these steps after completing the Longhorn installation:

  1. Edit the StorageClass longhorn using the kubectl edit command:
    kubectl edit sc longhorn
    

  2. Change the number of replicas to 1 in the StorageClass configuration file.

  3. Save the changes made to the Longhorn StorageClass configuration file.