fdb-kubernetes-operator
fdb-kubernetes-operator copied to clipboard
Allow the sidecar to read labels from nodes
For more flexibility we should allow the sidecar to read labels from their Kubernetes node. This makes the process of using labels from the underlying Kubernetes node easier and doesn't require any additional information. This option should be optional for environments where the user is not able to read nodes.
Is this is referring to the fault domain labels we use as substitutions in the locality fields?
Right, the idea would be to allow to read the value of labels like topology.kubernetes.io/zone or topology.kubernetes.io/region defined in the Kubernetes docs. I wouldn't limit the labels to the well defined ones but rather have a generic approach to get the information from a node to also support custom node labels.
@johscheuer I think it would make sense to implement this in the new sidecar, since it already has a Kubernetes client as a requirement, and to implement this before we publish images with the new sidecar. That should allow us to make it a requirement for using the new locality structure in your three_data_hall design, and make it easy for people to adopt without needing to use specific versions. Do you think that approach makes sense?
That makes sense 👍 Do you think we should close this issue or just relabel it for the new sidecar image?
Let's relabel it.
On this topic: I managed to inject that information (zone) by using the ADDITIONAL_ENV_FILE (was around the time I made this PR)