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

编程入门 行业动态 更新时间:2024-10-28 18:24:01
本文介绍了如何在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,如果您在AWS上运行,kubernetes将自动为您创建一个AWS Elastic Load Balancer.此功能应可在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 -go示例.

更多推荐

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

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

发布评论

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

>www.elefans.com

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