简体   繁体   中英

Create nlb-ip loadbalancers in kubernetes created in AWS through Kops

I have a Kubernetes cluster created through the Kops tool. And I have a requirement to expose my service using a network load balancer. And the target groups should be based on IP based. 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/ .

This seems to work only when we have the cluster created through 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?

If you want to use IP targets, not instance targets, you need to use a CNI that provisions VPC IPs per pod. Those are:

Then you need to install AWS LB controller , which supports this mode both for NLB and 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.

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