I hosted a kubernetes cluster on EC2 instances (Self managed cluster and not EKS). I want to expose a service with type Load balancer. But I see that External-IP of the service is pending. However pod is running and I can even access it with POD ip.
I tried multiple annotations but none worked:
service.beta.kubernetes.io/aws-load-balancer-internal: "true"
service.beta.kubernetes.io/aws-load-balancer: "true"
I thought IAM permissions for the EC2 was missing but that didnt work either. Can anyone help?