Using kubectl

You can install Longhorn on any Kubernetes cluster using this command:

  1. kubectl apply -f https://raw.githubusercontent.com/longhorn/longhorn/master/deploy/longhorn.yaml

One way to monitor the progress of the installation is to watch Pods being created in the longhorn-system namespace:

  1. kubectl get pods \
  2. --namespace longhorn-system \
  3. --watch

Running Longhorn on Google Kubernetes Engine

Google Kubernetes Engine (GKE) requires some additional setup for Longorn to function properly. If you’re a GKE user, read this doc before proceeding.