orange-cloudfoundry / k3s-wrapper-boshrelease

k3s wrapper scripts bosh release
Apache License 2.0
2 stars 2 forks source link

standard k8s topology region tags on node #22

Open poblin-orange opened 1 year ago

poblin-orange commented 1 year ago

To support multi region cluster, the bosh release should be able to set region on each vm instance group. see https://kubernetes.io/docs/reference/labels-annotations-taints/#topologykubernetesioregion

In bosh context, even with multi-cpi director, there is no region concept. We can however sometime deduce the region id from zone id (eg: r1-z1, r1-z2, r2-z1,r2-z2 is 2 regions r1 and r2, each with 2 az).

We should be able to optin region calculation from az name.

poblin-orange commented 1 year ago

Note: this concept is not managed by bosh, and is iaas/context specific. Might be better to manage it with a separate controller scanning iaas api and labeling the nodes accordingly