- Newest
- Most votes
- Most comments
Hello,
Greetings for the day!!
I see that you have added AWS loadbalancer controller to your EKS cluster and after that you have tried to create an ingress so that you can make use of an ALB but the resource creation is not successful and you would like assistance with the same.
Whenever such issues are encountered, it is first advised to check if the AWS loabalancer controller is running or not, you can use the following command to verify the same: $ kubectl get deploy -n kube-system
If it is not running then I would request you to check the following documentation[1] to verify if any step is missed in AWS loadbalancer controller creation. You can also use the following command to check for any errors and proceed accordingly (kubectl describe pod <loadbalancer-controller-pod-name> -n kube-system)
From what you have mentioned, I see that some of your steps like identity provider creation are missing, please follow the below steps to properly install AWS loadbalancer controller:
-Create an IAM OIDC provider for your EKS cluster by following this documentation[2].
-Create an IAM policy as mentioned in this documentation[1].
-Create an IAM role and associate the IAM policy created in the above step to this role.
-Associate a trust relationship with the above role. Please refer the "AWS CLI and kubectl" section of the documentation[1] for steps to do this.
-Create a service account for the AWS loadbalancer controller. Please refer the "AWS CLI and kubectl" section of the documentation[1] for steps to do this.
-Use Helm to install the AWS loadbalancer controller.
-Verify of everything is running fine.
In case the loadbalancer controller is running fine then you can describe the ingress as well as check the loadbalancer controller logs to find the cause of the issue. Please use the below command to check ingress and AWS loadbalancer controller logs:
$ kubectl describe ingress <ingress-name> -n <namespace>
$ kubectl logs -n kube-system deployment.apps/aws-load-balancer-controller
In most cases, performing the above two checks are more than enough to identify the issue.
You can also follow the steps in this documentation[3] to troubleshoot issues related to ingress and loadbalancer creation when using AWS loadbalancer controller.
I hope this helps.
Reference:
[1] https://docs.aws.amazon.com/eks/latest/userguide/aws-load-balancer-controller.html
[2] https://docs.aws.amazon.com/eks/latest/userguide/enable-iam-roles-for-service-accounts.html
Relevant content
- asked 6 months ago
- asked 9 months ago
- AWS OFFICIALUpdated a year ago
- How can I troubleshoot issues when I use the AWS Load Balancer Controller to create a load balancer?AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 7 months ago
- AWS OFFICIALUpdated 7 months ago