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 负载均衡器
发布评论