opencurve / curve-operator

Curve Storage Orchestration for Kubernetes
23 stars 21 forks source link

Feat: Disk discovery #79

Open liuminjian opened 1 year ago

liuminjian commented 1 year ago

This pr resolves https://github.com/opencurve/curve-operator/issues/27 . 参考rook实现方式,增加磁盘发现功能

curve-operator增加环境变量 DISCOVER_DISK:是否开启磁盘发现 DISCOVER_UDEV_BLACKLIST:过滤磁盘规则 DISCOVER_INTERVAL:磁盘发现扫描间隔

image

curve-operator启动后会根据环境变量创建daemonset

image

daemonset扫描每个节点的磁盘信息并保存到configmap

image