Kubernetes on AWS ELB names

5/24/2016

When running Kubernetes on AWS, exposing a Service with "type=LoadBalancer" works well. However, the name given to the Elastic Load Balancer is a rather long hash and as such, it is hard to keep track through the AWS console as to which load balancer belongs to which Service.

Is it possible to specify he name of the ELB object at service creation time?

If not, I might create an issue that the service name be used when creating the ELB.

On a related note, is it possible to modify the security group (firewall) that the load balancer uses?

-- srkiNZ84
amazon-ec2
kubernetes

1 Answer

5/24/2016

The tags of the ELB contain the information you're looking for.

$ aws elb describe-tags --load-balancer-names xxxxx
{
    "TagDescriptions": [
        {
            "LoadBalancerName": "xxxxx",
            "Tags": [
                {
                    "Value": "default/nginx",
                    "Key": "kubernetes.io/service-name"
                },
                {
                    "Value": "my-cluster",
                    "Key": "KubernetesCluster"
                }
            ]
        }
    ]
}

If you want to give the ELB a proper domain name, you can assign one using Route53. It can be automated with something like route53-kubernetes.

-- kichik
Source: StackOverflow