-
Notifications
You must be signed in to change notification settings - Fork 204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aws-load-balancer-controller pod is running, but log has error, and can not create ALB. #522
Comments
When we deployed aws-load-balancer-controller from the addon helm chart, the ServiceAccount was named as follows. $ kubectl -n pegaaddons get sa
NAME SECRETS AGE
addons-aws-load-balancer-controller 1 18h
default 1 18h I think the problem is that this does not match the service account name allowed in the trust policy of the IAM role created with the Please check the trust policy of the IAM role. In addition, there is a problem with the VPC ID parameter specified in the |
The instructions for replacing "YOUR_IAM_ROLE_ARN" in the |
Instructions provided in Pega docs are the links from AWS documentation. |
Describe the bug
aws-load-balancer-controller pod is in running status, but log has error, and then can not create ALB.
But I followed AWS manual(https://docs.aws.amazon.com/eks/latest/userguide/aws-load-balancer-controller.html) and no problem happened.
Here are the status and log.
To Reproduce
curl -O https://raw.githubusercontent.com/kubernetes-sigs/aws-load-balancer-controller/v2.4.4/docs/install/iam_policy.json
aws iam create-policy
--policy-name AWSLoadBalancerControllerIAMPolicy
--policy-document file://iam_policy.json
eksctl create iamserviceaccount
--cluster=pega-86-demo
--namespace=pegaaddons
--name=aws-load-balancer-controller
--role-name AmazonEKSLoadBalancerControllerRole
--attach-policy-arn=arn:aws:iam::xxxxxxxxxxx:policy/AWSLoadBalancerControllerIAMPolicy
--approve
AWS manual(error did not happen):
4.1 helm install aws-load-balancer-controller eks/aws-load-balancer-controller
-n pegaaddons
--set clusterName=pega-86-demo
--set serviceAccount.create=false
--set serviceAccount.name=aws-load-balancer-controller
Pega manual(error happened):
4.2 helm install addons pega/addons --namespace pegaaddons --values addons-eks.yaml
addons-eks.yaml:
Expected behavior
Hope Pega can give a right manual.
Chart version
2.6.2
No customizations
Server (if applicable, please complete the following information):
The text was updated successfully, but these errors were encountered: