Open dsumsky opened 4 years ago
We're looking at the same problem, @dsumsky. It would be nice if we could setup a pretty name to the ELB, but it's not possible to do that now [1].
Would it be possible to get the name dynamically from the service itself?
We had to setup this in two steps:
['manifest']['status']['loadBalancer']['ingress'][0]['hostname'].split('-')[0]
(we're using Spinnaker [2] to do this)[1] https://github.com/kubernetes/kubernetes/issues/29789 [2] https://spinnaker.io/
Let's have a k8s service of
LoadBalancer
type running on k8s cluster on AWS. It's name can bemy-nginx
. Now, I would like to define an external metric based on some of the load balancer CloudWatch metrics, e.g.SurgeQueueLength
,RequestCount
etc. In order to get this working I need to hardcode the load balancer name in the resource configuration:k8s service:
Would it be possible to get the name dynamically from the service itself?