简体   繁体   中英

Kubernetes on AWS ELB names

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?

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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM