文档: https://longhorn.io/docs/1.7.1/
安装
kubectl apply -f https://raw.githubusercontent.com/longhorn/longhorn/v1.7.1/deploy/longhorn.yaml需要给服务 longhorn-frontend 开启外部访问
创建一个选择一组特定节点的 StorageClass
- 在所有节点上正常安装 Longhorn
- 进入Longhorn UI的节点页面,给节点添加标签
创建一个具有节点选择器的新 StorageClass
nodeSelector: "tag"。
- 例:
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
name: longhorn-de
annotations:
storageclass.kubesphere.io/supported-access-modes:
- ReadWriteOnce
labels:
storage.kubesphere.io/storagetype: BlockStorage
provisioner: driver.longhorn.io
parameters:
nodeSelector: 'de'
fsType: "ext4"
numberOfReplicas: "3"
staleReplicaTimeout: "2880"
fromBackup: ""
reclaimPolicy: Delete
allowVolumeExpansion: 'true'
volumeBindingMode: Immediate
2 条评论
新盘新项目,不再等待,现在就是最佳上车机会!coinsrore.com
批判锋芒犀利,直指问题症结所在。