https://www.yuque.com/liweiming/rancher/upzpa9

https://www.rancher.cn/longhorn

  1. yum install iscsi-initiator-utils -y

Longhorn 1.1

https://github.com/longhorn/longhorn
image.png

https://github.com/longhorn/longhorn/releases/tag/v1.1.0

https://blog.csdn.net/networken/article/details/108234051

部署

k8s部署存储
https://longhorn.io/docs/0.8.0/install/install-with-kubectl/

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

helm 部署

Longhorn初探 轻松实现企业级持久化存储 .pdf
推荐链接
https://mritd.com/2021/03/06/longhorn-storage-test/

卸载
https://longhorn.io/docs/1.1.0/deploy/uninstall/

  1. kubectl api-resources -o name --verbs=list --namespaced | xargs -n 1 kubectl get --show-kind --ignore-not-found -n longhorn-system
  1. kubectl -n longhorn-system delete pod --all --force --grace-period=0
  1. kubectl create -f https://raw.githubusercontent.com/longhorn/longhorn/v1.1.0/uninstall/uninstall.yaml
  2. kubectl get job/longhorn-uninstall -w
  1. kubectl delete -f https://raw.githubusercontent.com/longhorn/longhorn/v1.1.0/deploy/longhorn.yaml
  2. kubectl delete -f https://raw.githubusercontent.com/longhorn/longhorn/v1.1.0/uninstall/uninstall.yaml
  1. kubectl delete namespaces longhorn-system --force --grace-period=0