fdb-kubernetes-operator icon indicating copy to clipboard operation
fdb-kubernetes-operator copied to clipboard

Allow the sidecar to read labels from nodes

Open johscheuer opened this issue 4 years ago • 5 comments

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.

johscheuer avatar Jul 05 '21 09:07 johscheuer

Is this is referring to the fault domain labels we use as substitutions in the locality fields?

brownleej avatar Jul 06 '21 19:07 brownleej

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 avatar Jul 07 '21 07:07 johscheuer

@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?

brownleej avatar Dec 07 '21 15:12 brownleej

That makes sense 👍 Do you think we should close this issue or just relabel it for the new sidecar image?

johscheuer avatar Dec 10 '21 07:12 johscheuer

Let's relabel it.

brownleej avatar Dec 10 '21 17:12 brownleej

On this topic: I managed to inject that information (zone) by using the ADDITIONAL_ENV_FILE (was around the time I made this PR)

gm42 avatar May 29 '24 19:05 gm42