kubernetes-sigs / cloud-provider-azure

Cloud provider for Azure
https://cloud-provider-azure.sigs.k8s.io/
Apache License 2.0
258 stars 271 forks source link

Human readable service identification for loadbalancer frontend IPs #6170

Open tdihp opened 3 months ago

tdihp commented 3 months ago

What would you like to be added:

Add a indicator on which frontend IP address is for which service of which namespace, either as a part of LB comment (if that come to exist), or as a part of service status.

Why is this needed:

This will be more direct for users to see which service is relevant for which frontend IP object for troubleshooting, eliminate the need to crosscheck joining loadbalancer setting with the service yamls.

nilo19 commented 2 months ago

Frontend IP configuration is not a network subresource so we cannot tag it. One possible solution is to tag the load balancer, but that would be messy if the number of frontend ip configs is big.

tdihp commented 2 months ago

Possible to just put a configmap in kube-system for the mapping?

nilo19 commented 2 months ago

Possible to just put a configmap in kube-system for the mapping?

We need to consider if it's worth it creating a new resource just for clarification. The cost of checking this config map and checking the service uid would be pretty much the same.