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