Skip to content

Longhorn

Longhorn is a Cloud native distributed block storage for Kubernetes.

Example Config

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
apps:
  longhorn:
    description: |
      🐮 [link=https://longhorn.io/]Longhorn[/link] is a Cloud native distributed block storage for Kubernetes.
    enabled: false
    argo:
      # secret keys to provide for the argocd secret plugin app, none by default
      secret_keys: {}
      # git repo to install the Argo CD app from
      repo: https://github.com/small-hack/argocd-apps
      # path in the argo repo to point to. Trailing slash very important!
      path: demo/longhorn/helm/
      # either the branch or tag to point at in the argo repo above
      revision: "main"
      # kubernetes cluster to install the k8s app into, defaults to Argo CD default
      cluster: https://kubernetes.default.svc
      # namespace to install the k8s app in
      namespace: longhorn-system
      # recurse directories in the provided git repo
      directory_recursion: false
      # source repos for Argo CD App Project (in addition to argo.repo)
      project:
        name: longhorn
        source_repos:
          - https://charts.longhorn.io
          - https://github.com/longhorn/longhorn
        destination:
          # automatically includes the app's namespace and argocd's namespace
          namespaces: []

Troubleshooting

Uninstalling

Uninstalling through the Argo CD web interface often doesn't cut it. Try going through the docs to uninstall longhorn.

If you have issues deleting a namespace with longhorn, try these steps here.

We also found this issue useful: longhorn/longhorn#5319