https://longhorn.io/
https://github.com/longhorn/longhorn
yum install iscsi-initiator-utils
手动部署
商店部署
[rancher@rmaster01 ~]$ kubectl -n longhorn-system get all
NAME READY STATUS RESTARTS AGE
pod/csi-attacher-78bf9b9898-2psjx 1/1 Running 2 101d
pod/csi-attacher-78bf9b9898-9776q 1/1 Running 1 101d
pod/csi-attacher-78bf9b9898-cflms 1/1 Running 1 101d
pod/csi-provisioner-8599d5bf97-65x9b 1/1 Running 4 101d
pod/csi-provisioner-8599d5bf97-dg6p9 1/1 Running 2 101d
pod/csi-provisioner-8599d5bf97-nlbc5 1/1 Running 2 101d
pod/csi-resizer-586665f745-pt2r7 1/1 Running 1 101d
pod/csi-resizer-586665f745-tkj2b 1/1 Running 2 101d
pod/csi-resizer-586665f745-xktkx 1/1 Running 1 101d
pod/engine-image-ei-eee5f438-pqfqs 1/1 Running 1 101d
pod/engine-image-ei-eee5f438-tw68r 1/1 Running 1 101d
pod/instance-manager-e-19643db2 1/1 Running 0 74m
pod/instance-manager-e-66366e8b 1/1 Running 0 72m
pod/instance-manager-r-8a9c4425 1/1 Running 0 74m
pod/instance-manager-r-f733bfb5 1/1 Running 0 72m
pod/longhorn-csi-plugin-86x72 2/2 Running 3 101d
pod/longhorn-csi-plugin-cjx2m 2/2 Running 6 101d
pod/longhorn-driver-deployer-8848f7c7d-w6q8p 1/1 Running 1 101d
pod/longhorn-manager-2sd8d 1/1 Running 1 101d
pod/longhorn-manager-9hx92 1/1 Running 1 101d
pod/longhorn-ui-5fb67b7dbb-tmhpw 1/1 Running 4 101d
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
service/csi-attacher ClusterIP 10.43.183.62 <none> 12345/TCP 101d
service/csi-provisioner ClusterIP 10.43.212.73 <none> 12345/TCP 101d
service/csi-resizer ClusterIP 10.43.104.144 <none> 12345/TCP 101d
service/longhorn-backend ClusterIP 10.43.238.184 <none> 9500/TCP 101d
service/longhorn-frontend ClusterIP 10.43.248.64 <none> 80/TCP 101d
NAME DESIRED CURRENT READY UP-TO-DATE AVAILABLE NODE SELECTOR AGE
daemonset.apps/engine-image-ei-eee5f438 2 2 2 2 2 <none> 101d
daemonset.apps/longhorn-csi-plugin 2 2 2 2 2 <none> 101d
daemonset.apps/longhorn-manager 2 2 2 2 2 <none> 101d
NAME READY UP-TO-DATE AVAILABLE AGE
deployment.apps/csi-attacher 3/3 3 3 101d
deployment.apps/csi-provisioner 3/3 3 3 101d
deployment.apps/csi-resizer 3/3 3 3 101d
deployment.apps/longhorn-driver-deployer 1/1 1 1 101d
deployment.apps/longhorn-ui 1/1 1 1 101d
NAME DESIRED CURRENT READY AGE
replicaset.apps/csi-attacher-78bf9b9898 3 3 3 101d
replicaset.apps/csi-provisioner-8599d5bf97 3 3 3 101d
replicaset.apps/csi-resizer-586665f745 3 3 3 101d
replicaset.apps/longhorn-driver-deployer-8848f7c7d 1 1 1 101d
replicaset.apps/longhorn-ui-5fb67b7dbb 1 1 1 101d
[rancher@rmaster01 ~]$
[rancher@rmaster01 ~]$ kubectl -n longhorn-system get all
NAME READY STATUS RESTARTS AGE
pod/csi-attacher-78bf9b9898-2psjx 1/1 Running 2 101d
pod/csi-attacher-78bf9b9898-9776q 1/1 Running 1 101d
pod/csi-attacher-78bf9b9898-cflms 1/1 Running 1 101d
pod/csi-provisioner-8599d5bf97-65x9b 1/1 Running 4 101d
pod/csi-provisioner-8599d5bf97-dg6p9 1/1 Running 2 101d
pod/csi-provisioner-8599d5bf97-nlbc5 1/1 Running 2 101d
pod/csi-resizer-586665f745-pt2r7 1/1 Running 1 101d
pod/csi-resizer-586665f745-tkj2b 1/1 Running 2 101d
pod/csi-resizer-586665f745-xktkx 1/1 Running 1 101d
pod/engine-image-ei-eee5f438-pqfqs 1/1 Running 1 101d
pod/engine-image-ei-eee5f438-tw68r 1/1 Running 1 101d
pod/instance-manager-e-19643db2 1/1 Running 0 74m
pod/instance-manager-e-66366e8b 1/1 Running 0 72m
pod/instance-manager-r-8a9c4425 1/1 Running 0 74m
pod/instance-manager-r-f733bfb5 1/1 Running 0 72m
pod/longhorn-csi-plugin-86x72 2/2 Running 3 101d
pod/longhorn-csi-plugin-cjx2m 2/2 Running 6 101d
pod/longhorn-driver-deployer-8848f7c7d-w6q8p 1/1 Running 1 101d
pod/longhorn-manager-2sd8d 1/1 Running 1 101d
pod/longhorn-manager-9hx92 1/1 Running 1 101d
pod/longhorn-ui-5fb67b7dbb-tmhpw 1/1 Running 4 101d
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
service/csi-attacher ClusterIP 10.43.183.62 <none> 12345/TCP 101d
service/csi-provisioner ClusterIP 10.43.212.73 <none> 12345/TCP 101d
service/csi-resizer ClusterIP 10.43.104.144 <none> 12345/TCP 101d
service/longhorn-backend ClusterIP 10.43.238.184 <none> 9500/TCP 101d
service/longhorn-frontend ClusterIP 10.43.248.64 <none> 80/TCP 101d
NAME DESIRED CURRENT READY UP-TO-DATE AVAILABLE NODE SELECTOR AGE
daemonset.apps/engine-image-ei-eee5f438 2 2 2 2 2 <none> 101d
daemonset.apps/longhorn-csi-plugin 2 2 2 2 2 <none> 101d
daemonset.apps/longhorn-manager 2 2 2 2 2 <none> 101d
NAME READY UP-TO-DATE AVAILABLE AGE
deployment.apps/csi-attacher 3/3 3 3 101d
deployment.apps/csi-provisioner 3/3 3 3 101d
deployment.apps/csi-resizer 3/3 3 3 101d
deployment.apps/longhorn-driver-deployer 1/1 1 1 101d
deployment.apps/longhorn-ui 1/1 1 1 101d
NAME DESIRED CURRENT READY AGE
replicaset.apps/csi-attacher-78bf9b9898 3 3 3 101d
replicaset.apps/csi-provisioner-8599d5bf97 3 3 3 101d
replicaset.apps/csi-resizer-586665f745 3 3 3 101d
replicaset.apps/longhorn-driver-deployer-8848f7c7d 1 1 1 101d
replicaset.apps/longhorn-ui-5fb67b7dbb 1 1 1 101d
[rancher@rmaster01 ~]$