aws-load-balancer-controller: Unable to create Ingress object - no endpoints available for service "aws-load-balancer-webhook-service"

Hi, I am facing this error when creating an Ingress object. What does it mean? And, how to fix it?

Error from server (InternalError): error when creating "STDIN": Internal error occurred: failed calling webhook "vingress.elbv2.k8s.aws": Post "https://aws-load-balancer-webhook-service.kube-system.svc:443/validate-networking-v1beta1-ingress?timeout=10s": no endpoints available for service "aws-load-balancer-webhook-service"

This is my installation script for AWS Load Balancer controller.

  helm repo add eks https://aws.github.io/eks-charts
  helm install aws-load-balancer-controller \
  	eks/aws-load-balancer-controller \
  	--set clusterName=eks-saga-orchestration \
  	--set nodeSelector.role=web \
  	--set serviceAccount.create=false \
  	--set serviceAccount.name=aws-load-balancer-controller \
  	-n kube-system

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 1
  • Comments: 28 (1 by maintainers)

Most upvoted comments

@gavinfish How did you managed to fix it…?

To me using eksctl silently failed creating the service account, which was the problem. Make sure the aws-load-balancer-controller service account exists by running kubectl get servicesaccounts -n kube-system