Open zlobober opened 11 months ago
It would be better if Backend was able to provide correct names from certain attributes that independent on its environment. Is it possible to add such special attributes with correct container_name and host_name for any environment of Backand? @zlobober
There is a selector container/host at the System page.
Currently its logic is as follows:
//sys/scheduler/instances/<instance_name>
)physical_host
annotation of the instance node in Cypress (i.e.//sys/scheduler/instances/<instance_name>/@annotations/physical_host
)In k8s (at least in Nebius convention) the logic must be different:
k8s_pod_name
annotation of the instance node in Cypress (i.e.//sys/scheduler/instances/<instance_name>/@annotations/k8s_pod_name
)//sys/scheduler/instances/<instance_name>
)I believe that there may be other situations when some of these selectors must be handled differently (i.e. in case of installations without k8s outside of Yandex). Therefore, I'd suggest introduce two options allowing customization of the data source for these selectors.
For example, it may look as follows:
instance_host_source = "instance_name" | "annotation:<annotation_name>"
instance_container_source = "instance_name" | "annotation:<annotation_name>"
For Yandex configuration will be
instance_host_source = "annotation:physical_host"
andinstance_container_source = "instance_name"
; for Nebius k8s it will beinstance_host_source = "instance_name"
andinstance_container_source = "annotation:k8s_pod_name"
.