yunify / qingstor-csi

neonsan csi plugin for kubernetes
Apache License 2.0
15 stars 14 forks source link

Add NeonIO support: get leader center IP using K8s API #57

Closed Hansyangxingxiang closed 2 years ago

Hansyangxingxiang commented 3 years ago

This PR enables qingstor-csi to retrieve the IP of the leader center instance using K8s API rather than ZK, which is used in NeonIO.

When the config toml file contains a namespace key under the k8s table, with a non-empty value, the CSI driver uses client-go to retrieve the leader IP by getting the leases.coordination.k8s.io resource which the center instances use for leader election. Otherwise, it fallbacks to the ZK approach.

zheng1 commented 3 years ago

/cc @dkeven @stoneshi-yunify

dkeven commented 3 years ago

I think the version should be bumped to v1.2.2

https://github.com/yunify/qingstor-csi/blob/d2fe62c9dc1a48fdcd65e4cd3e396760be661602/cmd/neonsan/main.go#L31

Hansyangxingxiang commented 2 years ago

NeonIO project cancelled