简体   繁体   English

Ingress 和 AWS 应用程序负载均衡器

[英]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?无论如何要检查 EKS 中创建的入口资源与 AWS Load Balancer Controller 创建的应用程序负载均衡器之间的映射?

My understanding is that an ALB gets created by AWS LBC for an ingress of class "alb".我的理解是 AWS LBC 为 class“alb”的入口创建了一个 ALB。 This ALB should get deleted after the ingress resource is deleted.删除入口资源后,应删除此 ALB。

But this doesn't happen sometimes.但这有时不会发生。 Likely because I messed around with other related resources such as statefulset, service or pod.可能是因为我弄乱了其他相关资源,例如 statefulset、service 或 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?那么有没有办法在 AWS 中查看一个 Ingress 和它对应的 ALB 之间的链接呢?

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"}'您可以使用此命令打印为集群中的每个 Ingress 创建的 ALB: kubectl get ingress --all-namespaces --output jsonpath='{range.items[*]}{@.metadata.name}{"\t"}{@.status.loadBalancer.ingress[0].hostname}{"\n"}'

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 通过 Ingress 注释部署 AWS Application Load Balancer 失败。 涉及印花布 - Deploying AWS Application Load Balancer by Ingress annotations failed. Calico involved AWS 应用程序负载均衡器抛出 502 - AWS Application load balancer throwing 502 将 http 重定向到 https AWS 应用程序负载均衡器 - Redirect http to https AWS Application Load Balancer 以 lambda 作为目标的 AWS Application Load Balancer 无法正常工作 - AWS Application Load Balancer with lambda as target not working AWS 负载均衡器和 BlueHost - AWS Load Balancer & BlueHost Kops nginx-Ingress controller 由于权限问题无法创建 AWS 网络负载均衡器 - Kops nginx-Ingress controller fails to create AWS Network Load Balancer due to permission issue 如何为 AWS Application Load Balancer 使用基于路径的路由 - How to have path based routing for AWS Application Load Balancer AWS 应用程序负载均衡器:安全组设置与侦听器设置 - AWS application load balancer: Security group settings vs listener settings AWS Application Load Balancer SSL 终止与 Apache Docker - AWS Application Load Balancer SSL Termination with Apache Docker CloudFormation 中应用程序负载均衡器的 AWS::WAFv2::WebACLAssociation ResourceArn - AWS::WAFv2::WebACLAssociation ResourceArn for Application Load Balancer in CloudFormation
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM