thecodeteam / roadmap

The {code} Team Roadmap
3 stars 1 forks source link

Use Kubernetes labels to store ScaleIO sdc-guid value #187

Closed vladimirvivien closed 6 years ago

vladimirvivien commented 6 years ago

The current version of the ScaleIO Kubernetes volume plugin relies on the presence drv_cfg binary being installed on ScaleIO SDC nodes for the simple reason of retrieving the machine's SDC guid to ultimately get the instance ID. This can be an issue if the binary has been moved or installed in non-standard location.

Label Nodes with SDC GUID

This proposal is to forego the need to use the drv_cfg binary to get the value of the SDC GUID. Instead, it relies on the Kubernetes resource labeling facility to store the SDC GUID.

The following label will be used to store the instance ID of a node:

scaleio.sdcGuid=<instance-id-value>

For instance, the following attaches the scaleio.instance_guid label to node foo:

kubectl label node fooNode scaleio.sdcGuid=ABCD-EFG-HIJKLMN-OPQRSTU

How it works

vladimirvivien commented 6 years ago

Done!