How to create Kubernetes load balancer on aws

前端 未结 2 1652
名媛妹妹
名媛妹妹 2021-01-11 14:50

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

Kubernetes service basically use the kubeproxy

2条回答
  •  难免孤独
    2021-01-11 15:21

    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.

    For an example, check out the guestbook-go example.

提交回复
热议问题