Kubernetes External Load Balancer Service on DigitalOcean

前端 未结 3 832
梦谈多话
梦谈多话 2021-02-04 16:30

I\'m building a container cluster using CoreOs and Kubernetes on DigitalOcean, and I\'ve seen that in order to expose a Pod to the world you have to create a Service with Type:

3条回答
  •  滥情空心
    2021-02-04 17:20

    The LoadBalancer type of service is implemented by adding code to the kubernetes master specific to each cloud provider. There isn't a cloud provider for Digital Ocean (supported cloud providers), so the LoadBalancer type will not be able to take advantage of Digital Ocean's Floating IPs.

    Instead, you should consider using a NodePort service or attaching an ExternalIP to your service and mapping the exposed IP to a DO floating IP.

提交回复
热议问题