简体   繁体   中英

Ingress and AWS Application Load Balancer

Is there anyway to inspect the mappings between ingress resources created in EKS and Application Load Balancers created by AWS Load Balancer Controller?

My understanding is that an ALB gets created by AWS LBC for an ingress of class "alb". This ALB should get deleted after the ingress resource is deleted.

But this doesn't happen sometimes. Likely because I messed around with other related resources such as statefulset, service or pod. (or could it be due to repeated deployment without deleting first?)

So is there a way to see the link between an ingress and its corresponding ALB in AWS?

Thanks

is there a way to see the link between an ingress and its corresponding ALB in AWS?

You can use this command to print the ALB created for each Ingress in your cluster: kubectl get ingress --all-namespaces --output jsonpath='{range.items[*]}{@.metadata.name}{"\t"}{@.status.loadBalancer.ingress[0].hostname}{"\n"}'

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