简体   繁体   English

如何在 pprivate EKS 集群中公开我的应用程序外部集群或 vpc 我的内部负载均衡器

[英]How to expose my app outside cluster or vpc my internal load balancer in pprivate EKS cluster

I am having doubt with AWS EKS我对 AWS EKS 有疑问

i have EKS cluster (Private su.nets) managed worker nodes( private su.nets) and i deployed nginx deplyoment with three replicas and did service internal loadbalancer i can do curl我有 EKS 集群(私有 su.nets)管理的工作节点(私有 su.nets),我部署了 nginx 部署了三个副本,并提供了服务内部负载均衡器,我可以做到 curl

getting expected output problem: How to expose my app outside cluster or vpc得到预期的 output 问题:如何在集群或 vpc 之外公开我的应用程序

Thanks谢谢

You can have your EKS nodes in private su.net of VPC but you need public su.nets also for exposing your pods/containers.您可以将 EKS 节点放在 VPC 的私有 su.net 中,但您还需要公共 su.net 来公开您的 pod/容器。

So ideally you need to create a LB service for your nginx deployment.因此理想情况下,您需要为 nginx 部署创建一个 LB 服务。

The below blog helped me during my initial EKS setup hope it helps you too下面的博客在我最初的 EKS 设置过程中帮助了我希望它对你也有帮助

Nginx ingress controller with NLB Nginx 入口 controller 与 NLB

You can have AWS Application Load Balancer added to your EKS cluster and have an ingress targeting your service.您可以将 AWS Application Load Balancer 添加到您的 EKS 集群,并有一个针对您的服务的入口。

https://docs.aws.amazon.com/eks/latest/userguide/alb-ingress.html https://docs.aws.amazon.com/eks/latest/userguide/alb-ingress.html

  • Deploy ALB Controller in your cluster在您的集群中部署 ALB Controller
  • Add new ingress pointing your service添加指向您的服务的新入口

Remember to make alb.ingress.kube.netes.io/scheme: inte.net-facing as you want to expose your service to public.请记住制作alb.ingress.kube.netes.io/scheme: inte.net-facing因为你想向公众公开你的服务。

You can get DNS of new ingress in AWS Console(EC2/Load Balancer) or by describing ingress using kubectl.您可以在 AWS 控制台(EC2/负载均衡器)中或通过使用 kubectl 描述入口来获得 DNS 的新入口。

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

相关问题 EKS 集群未在 Ingress controller 上显示我的 IP - EKS cluster is not showing my an IP on the Ingress controller 当我的程序在集群外运行时,如何使用 AWS 使用 .NET 向 EKS Kube.netes API 进行身份验证? - How can I use AWS to authenticate to the EKS Kubernetes API using .NET when my program is running outside the cluster? 将VPC-1中的RDS实例连接到VPC-2的EKS集群 - Connect RDS Instance in VPC-1 to EKS Cluster of VPC-2 如何在 EKS 集群上启用 Secrets 加密? - How to enable Secrets encryption on EKS cluster? 我可以通过 CDK 配置我的 EKS 集群的入站规则吗? - Can I configure my EKS cluster's inbound rules via CDK? 带有 static ip 的内部负载均衡器,在 AWS EKS 中支持 HTTPS - internal load balancer with static ip and supports HTTPS in AWS EKS 我如何通过 nginx 入口 controller 公开我的 EKS 微服务 - How can i expose my EKS microservices via nginx ingress controller 带有 EKS 集群的 PV 和 PVC - PV & PVC with EKS Cluster coredns 没有部署在新的 EKS 集群中? - coredns not deploying in new EKS cluster? 如何正确地将内部 gRPC 微服务暴露给 EKS 中的其他服务? - How to correctly expose internal gRPC microservice to other services in EKS?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM