如何在 aws 上创建 Kubernetes 负载均衡器

编程入门 行业动态 更新时间:2024-10-28 20:20:13
本文介绍了如何在 aws 上创建 Kubernetes 负载均衡器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

Kubernetes 为每个服务创建一个负载均衡器;在 GCE 中自动.我如何在 AWS 上管理类似的东西?

Kubernetes create a load balancer, for each service; automatically in GCE. How can I manage something similar on AWS?

Kubernetes 服务基本上使用 kubeproxy 来处理内部流量.但是那个kubeproxy ip 是不能访问外网的.

Kubernetes service basically use the kubeproxy to handle the internal traffic. But that kubeproxy ip its do not have access to the external network.

有没有办法做到这一点?

There its a way to accomplish this?

推荐答案

在您的服务定义中,设置其type 字段到LoadBalancer,如果你使用LoadBalancer,Kubernetes会自动为你创建一个AWS Elastic Balance'在 AWS 上运行.此功能应该适用于 GCE/GKE、AWS 和 OpenStack.

In your service definition, set its type field to LoadBalancer, and kubernetes will automatically create an AWS Elastic Load Balancer for you if you're running on AWS. This feature should work on GCE/GKE, AWS, and OpenStack.

例如,查看 guestbook- 去例子.

更多推荐

如何在 aws 上创建 Kubernetes 负载均衡器

本文发布于:2023-11-01 20:50:19,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1550383.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:均衡器   负载   如何在   Kubernetes   aws

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!