如何在AWS上创建Kubernetes负载均衡器 [英] How to create Kubernetes load balancer on aws

查看:147
本文介绍了如何在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

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负载均衡器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆