[英]Create nlb-ip loadbalancers in kubernetes created in AWS through Kops
I have a Kubernetes cluster created through the Kops tool.我有一个通过 Kops 工具创建的 Kubernetes 集群。 And I have a requirement to expose my service using a network load balancer.
而且我需要使用网络负载平衡器公开我的服务。 And the target groups should be based on IP based.
并且目标人群应该以IP为基础。 I have found the answer using the annotation mentioned in the site https://kubernetes-sigs.github.io/aws-load-balancer-controller/v2.1/guide/service/nlb_ip_mode/ .
我使用站点https://kubernetes-sigs.github.io/aws-load-balancer-controller/v2.1/guide/service/nlb_ip_mode/中提到的注释找到了答案。
This seems to work only when we have the cluster created through EKS.这似乎只有在我们通过 EKS 创建集群时才有效。 Since I'm using a kops tool could you please help me in installing alb load balancer controller which is one of the requirements to create a nlb-IP loadbalancers?
由于我使用的是 kops 工具,请您帮我安装alb 负载平衡器 controller这是创建 nlb-IP 负载平衡器的要求之一吗?
If you want to use IP targets, not instance targets, you need to use a CNI that provisions VPC IPs per pod.如果要使用 IP 目标,而不是实例目标,则需要使用为每个 pod 配置 VPC IP 的 CNI。 Those are:
那些是:
Then you need to install AWS LB controller , which supports this mode both for NLB and ALB.然后你需要安装AWS LB controller ,它支持 NLB 和 ALB 的这种模式。 I would wait until kOps 1.20, which will support installing this controller out of the box, including the various permissions that needs setting.
我会等到 kOps 1.20,它将支持开箱即用地安装这个 controller,包括需要设置的各种权限。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.