[英]Expose Kubernetes services running in EKS through API Gateway
I am new to Kubernetes and AWS and exploring different AWS technologies for a project.我是 Kubernetes 和 AWS 的新手,正在为一个项目探索不同的 AWS 技术。 One thing I am doing as part of that is to see how we can have routes in API Gateway connect to an EKS cluster (in a VPC).
作为其中的一部分,我正在做的一件事是查看如何让 API Gateway 中的路由连接到 EKS 集群(在 VPC 中)。
This is what I have working:这就是我的工作:
This is what I am trying:这就是我正在尝试的:
If I am doing this wrong way, please advice the right way of exposing EKS cluster in API Gateway through the nginx ingress controller.如果我这样做是错误的,请建议通过 nginx 入口控制器在 API 网关中公开 EKS 集群的正确方法。 Thanks!
谢谢!
I have found the problem.我找到了问题所在。 When using nginx-ingress-controller, I just had to specify the annotation that it is of type "nlb"
使用 nginx-ingress-controller 时,我只需要指定它的类型为“nlb”的注释
service.beta.kubernetes.io/aws-load-balancer-type: nlb service.beta.kubernetes.io/aws-load-balancer-type: nlb
Once I deploy the ingress controller with this annotation, it automatically creates an nlb in aws and sets the target according to the ingress defined!一旦我使用此注释部署入口控制器,它会自动在 aws 中创建一个 nlb 并根据定义的入口设置目标! I was creating a new nlb myself and then trying to point to the ingress-controller which is not needed (nor the right way).
我自己创建了一个新的 nlb,然后尝试指向不需要的入口控制器(也不是正确的方法)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.