rancher-charts/charts/longhorn/README.md

50 lines
2.2 KiB
Markdown
Raw Normal View History

2020-12-22 22:05:21 +00:00
# Rancher Longhorn Chart
2020-09-25 21:27:40 +00:00
2020-12-22 22:05:21 +00:00
> **Important**: Please install Longhorn chart in `longhorn-system` namespace only.
2020-09-25 21:27:40 +00:00
> **Warning**: Longhorn doesn't support downgrading from a higher version to a lower version.
2020-12-22 22:05:21 +00:00
The following document pertains to running Longhorn from the Rancher 2.0 chart.
2020-09-25 21:27:40 +00:00
## Source Code
Longhorn is 100% open source software. Project source code is spread across a number of repos:
1. Longhorn Engine -- Core controller/replica logic https://github.com/longhorn/longhorn-engine
2. Longhorn Instance Manager -- Controller/replica instance lifecycle management https://github.com/longhorn/longhorn-instance-manager
2020-12-22 22:05:21 +00:00
3. Longhorn Manager -- Longhorn orchestration, includes CSI driver for Kubernetes https://github.com/longhorn/longhorn-manager
4. Longhorn UI -- Dashboard https://github.com/longhorn/longhorn-ui
2020-09-25 21:27:40 +00:00
## Prerequisites
2020-12-22 22:05:21 +00:00
1. Rancher v2.1+
2. Docker v1.13+
3. Kubernetes v1.14+
4. Make sure `curl`, `findmnt`, `grep`, `awk` and `blkid` has been installed in all nodes of the Kubernetes cluster.
5. Make sure `open-iscsi` has been installed in all nodes of the Kubernetes cluster. For GKE, recommended Ubuntu as guest OS image since it contains `open-iscsi` already.
2020-09-25 21:27:40 +00:00
## Uninstallation
2020-12-22 22:05:21 +00:00
1. To prevent damage to the Kubernetes cluster, we recommend deleting all Kubernetes workloads using Longhorn volumes (PersistentVolume, PersistentVolumeClaim, StorageClass, Deployment, StatefulSet, DaemonSet, etc).
2. From Rancher UI, navigate to `Catalog Apps` tab and delete Longhorn app.
## Troubleshooting
### I deleted the Longhorn App from Rancher UI instead of following the uninstallation procedure
Redeploy the (same version) Longhorn App. Follow the uninstallation procedure above.
### Problems with CRDs
2020-09-25 21:27:40 +00:00
2020-12-22 22:05:21 +00:00
If your CRD instances or the CRDs themselves can't be deleted for whatever reason, run the commands below to clean up. Caution: this will wipe all Longhorn state!
2020-09-25 21:27:40 +00:00
2020-12-22 22:05:21 +00:00
```
# Delete CRD instances and definitions
curl -s https://raw.githubusercontent.com/longhorn/longhorn/v0.8.1/scripts/cleanup.sh |bash -s v062
curl -s https://raw.githubusercontent.com/longhorn/longhorn/v0.8.1/scripts/cleanup.sh |bash -s v070
```
2020-09-25 21:27:40 +00:00
---
Please see [link](https://github.com/longhorn/longhorn) for more information.