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

    1. yum install iscsi-initiator-utils

    手动部署

    商店部署

    1. [rancher@rmaster01 ~]$ kubectl -n longhorn-system get all
    2. NAME READY STATUS RESTARTS AGE
    3. pod/csi-attacher-78bf9b9898-2psjx 1/1 Running 2 101d
    4. pod/csi-attacher-78bf9b9898-9776q 1/1 Running 1 101d
    5. pod/csi-attacher-78bf9b9898-cflms 1/1 Running 1 101d
    6. pod/csi-provisioner-8599d5bf97-65x9b 1/1 Running 4 101d
    7. pod/csi-provisioner-8599d5bf97-dg6p9 1/1 Running 2 101d
    8. pod/csi-provisioner-8599d5bf97-nlbc5 1/1 Running 2 101d
    9. pod/csi-resizer-586665f745-pt2r7 1/1 Running 1 101d
    10. pod/csi-resizer-586665f745-tkj2b 1/1 Running 2 101d
    11. pod/csi-resizer-586665f745-xktkx 1/1 Running 1 101d
    12. pod/engine-image-ei-eee5f438-pqfqs 1/1 Running 1 101d
    13. pod/engine-image-ei-eee5f438-tw68r 1/1 Running 1 101d
    14. pod/instance-manager-e-19643db2 1/1 Running 0 74m
    15. pod/instance-manager-e-66366e8b 1/1 Running 0 72m
    16. pod/instance-manager-r-8a9c4425 1/1 Running 0 74m
    17. pod/instance-manager-r-f733bfb5 1/1 Running 0 72m
    18. pod/longhorn-csi-plugin-86x72 2/2 Running 3 101d
    19. pod/longhorn-csi-plugin-cjx2m 2/2 Running 6 101d
    20. pod/longhorn-driver-deployer-8848f7c7d-w6q8p 1/1 Running 1 101d
    21. pod/longhorn-manager-2sd8d 1/1 Running 1 101d
    22. pod/longhorn-manager-9hx92 1/1 Running 1 101d
    23. pod/longhorn-ui-5fb67b7dbb-tmhpw 1/1 Running 4 101d
    24. NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
    25. service/csi-attacher ClusterIP 10.43.183.62 <none> 12345/TCP 101d
    26. service/csi-provisioner ClusterIP 10.43.212.73 <none> 12345/TCP 101d
    27. service/csi-resizer ClusterIP 10.43.104.144 <none> 12345/TCP 101d
    28. service/longhorn-backend ClusterIP 10.43.238.184 <none> 9500/TCP 101d
    29. service/longhorn-frontend ClusterIP 10.43.248.64 <none> 80/TCP 101d
    30. NAME DESIRED CURRENT READY UP-TO-DATE AVAILABLE NODE SELECTOR AGE
    31. daemonset.apps/engine-image-ei-eee5f438 2 2 2 2 2 <none> 101d
    32. daemonset.apps/longhorn-csi-plugin 2 2 2 2 2 <none> 101d
    33. daemonset.apps/longhorn-manager 2 2 2 2 2 <none> 101d
    34. NAME READY UP-TO-DATE AVAILABLE AGE
    35. deployment.apps/csi-attacher 3/3 3 3 101d
    36. deployment.apps/csi-provisioner 3/3 3 3 101d
    37. deployment.apps/csi-resizer 3/3 3 3 101d
    38. deployment.apps/longhorn-driver-deployer 1/1 1 1 101d
    39. deployment.apps/longhorn-ui 1/1 1 1 101d
    40. NAME DESIRED CURRENT READY AGE
    41. replicaset.apps/csi-attacher-78bf9b9898 3 3 3 101d
    42. replicaset.apps/csi-provisioner-8599d5bf97 3 3 3 101d
    43. replicaset.apps/csi-resizer-586665f745 3 3 3 101d
    44. replicaset.apps/longhorn-driver-deployer-8848f7c7d 1 1 1 101d
    45. replicaset.apps/longhorn-ui-5fb67b7dbb 1 1 1 101d
    46. [rancher@rmaster01 ~]$
    47. [rancher@rmaster01 ~]$ kubectl -n longhorn-system get all
    48. NAME READY STATUS RESTARTS AGE
    49. pod/csi-attacher-78bf9b9898-2psjx 1/1 Running 2 101d
    50. pod/csi-attacher-78bf9b9898-9776q 1/1 Running 1 101d
    51. pod/csi-attacher-78bf9b9898-cflms 1/1 Running 1 101d
    52. pod/csi-provisioner-8599d5bf97-65x9b 1/1 Running 4 101d
    53. pod/csi-provisioner-8599d5bf97-dg6p9 1/1 Running 2 101d
    54. pod/csi-provisioner-8599d5bf97-nlbc5 1/1 Running 2 101d
    55. pod/csi-resizer-586665f745-pt2r7 1/1 Running 1 101d
    56. pod/csi-resizer-586665f745-tkj2b 1/1 Running 2 101d
    57. pod/csi-resizer-586665f745-xktkx 1/1 Running 1 101d
    58. pod/engine-image-ei-eee5f438-pqfqs 1/1 Running 1 101d
    59. pod/engine-image-ei-eee5f438-tw68r 1/1 Running 1 101d
    60. pod/instance-manager-e-19643db2 1/1 Running 0 74m
    61. pod/instance-manager-e-66366e8b 1/1 Running 0 72m
    62. pod/instance-manager-r-8a9c4425 1/1 Running 0 74m
    63. pod/instance-manager-r-f733bfb5 1/1 Running 0 72m
    64. pod/longhorn-csi-plugin-86x72 2/2 Running 3 101d
    65. pod/longhorn-csi-plugin-cjx2m 2/2 Running 6 101d
    66. pod/longhorn-driver-deployer-8848f7c7d-w6q8p 1/1 Running 1 101d
    67. pod/longhorn-manager-2sd8d 1/1 Running 1 101d
    68. pod/longhorn-manager-9hx92 1/1 Running 1 101d
    69. pod/longhorn-ui-5fb67b7dbb-tmhpw 1/1 Running 4 101d
    70. NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
    71. service/csi-attacher ClusterIP 10.43.183.62 <none> 12345/TCP 101d
    72. service/csi-provisioner ClusterIP 10.43.212.73 <none> 12345/TCP 101d
    73. service/csi-resizer ClusterIP 10.43.104.144 <none> 12345/TCP 101d
    74. service/longhorn-backend ClusterIP 10.43.238.184 <none> 9500/TCP 101d
    75. service/longhorn-frontend ClusterIP 10.43.248.64 <none> 80/TCP 101d
    76. NAME DESIRED CURRENT READY UP-TO-DATE AVAILABLE NODE SELECTOR AGE
    77. daemonset.apps/engine-image-ei-eee5f438 2 2 2 2 2 <none> 101d
    78. daemonset.apps/longhorn-csi-plugin 2 2 2 2 2 <none> 101d
    79. daemonset.apps/longhorn-manager 2 2 2 2 2 <none> 101d
    80. NAME READY UP-TO-DATE AVAILABLE AGE
    81. deployment.apps/csi-attacher 3/3 3 3 101d
    82. deployment.apps/csi-provisioner 3/3 3 3 101d
    83. deployment.apps/csi-resizer 3/3 3 3 101d
    84. deployment.apps/longhorn-driver-deployer 1/1 1 1 101d
    85. deployment.apps/longhorn-ui 1/1 1 1 101d
    86. NAME DESIRED CURRENT READY AGE
    87. replicaset.apps/csi-attacher-78bf9b9898 3 3 3 101d
    88. replicaset.apps/csi-provisioner-8599d5bf97 3 3 3 101d
    89. replicaset.apps/csi-resizer-586665f745 3 3 3 101d
    90. replicaset.apps/longhorn-driver-deployer-8848f7c7d 1 1 1 101d
    91. replicaset.apps/longhorn-ui-5fb67b7dbb 1 1 1 101d
    92. [rancher@rmaster01 ~]$