简体   繁体   English

在通过 Kops 在 AWS 中创建的 kubernetes 中创建 nlb-ip 负载均衡器

[英]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.

相关问题 SSH 到通过 KOPS 创建的 kubernetes 节点 - SSH into kubernetes nodes created through KOPS 如何使用Kops或Kubernetes创建AWS竞价型实例? - How to create AWS spot instances with Kops or Kubernetes? 未授权使用 kops 在 AWS 上创建 Kubernetes 集群 - Unothorized to create Kubernetes cluser on AWS using kops 使用 kops 在 aws 上创建 kubernetes EC2 集群 - Create kubernetes EC2 cluster on aws using kops AWS NLB到ALB IP白名单 - AWS NLB to ALB IP Whitelisting 如何获取基于 AWS kops 的 kubernetes 集群 IP 地址以连接 gitlab CICD 管道 - How to get AWS kops based kubernetes cluster IP address to connect with gitlab CICD pipeline 如何使用基于目标组“IP”的 [AWS] 设置 Kubernetes NLB 负载均衡器? - How to setup Kubernetes NLB Load Balancer with target group "IP" based [AWS]? 如何自定义由使用AWS NLB作为TCP服务的Kubernetes LoadBalancer类型服务创建的安全组入口规则 - How to customize the Security Group Ingress Rules created by a Kubernetes LoadBalancer type service that uses AWS NLB for TCP services 使用Kops的AWS上的Kubernetes群集 - NodePort服务不可用 - Kubernetes Cluster on AWS with Kops - NodePort Service Unavailable 无法使用kops在AWS上安装Kubernetes - Unable to install Kubernetes on AWS using kops
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM