AWS EKS - Create Load Balancer Service throws out of service

7/19/2018

I have a quick question regarding AWS EKS that whenever I create a K8s service with of type LoadBalancer, it provisions a classic ELB backed the EC2 where services are running. Now whenever I try to hit the Load Balancer ELB from the Internet, it returns ERR_EMPTY_RESPONSE error. If I navigate back to ELB and look at the instances behind ELB, it shows the status of EC2 instances as OutOfService.

This happens either I use my own K8s deployments & services or the one provided with documentation. Anyone can help me with this? More over, is there any way to provision a different type of Load Balancer for a K8s service? Thanks.

-- Janshair Khan
amazon-web-services
docker
kubernetes

1 Answer

9/14/2018

This is default behavior or K8S with on cloud providers , A service type Load Balancer will spins up real one which affect cost. Better to use K8S Ingress as best practice and can use as Endpoint or you can add under External Load Balancer.

-- Manoj
Source: StackOverflow