Back-off restarting failed container error on pods running on fargate not Nodegroup

0

Why am I getting Back off restarting failed on AWS-LOAD-BALANCER-CONTROLLER running on Fargate, not Nodegroup? How could this be resolved?

已提问 1 年前1307 查看次数
2 回答
0
已接受的回答

Hello rePost-User-8469491,

While deploying AWS Load Balancer Controller on EKS Fargate, you will have to explicitly specify the VPC ID and Region code as shown in the helm command below. Please refer this RePost article for more info.

helm install aws-load-balancer-controller eks/aws-load-balancer-controller \
    --set clusterName=YOUR_CLUSTER_NAME \
    --set serviceAccount.create=false \
    --set region=YOUR_REGION_CODE \
    --set vpcId=<VPC_ID> \
    --set serviceAccount.name=aws-load-balancer-controller \
    -n kube-system

If you have already done this and still facing issues, check the aws-load-balancer-controller pod logs to find out what is causing the pods to crash.

It would also be helpful if you could share the pod describe output: kubectl describe pod <aws-load-balancer-controller-pod> -n kube-system

Hope this helps!

profile pictureAWS
支持工程师
已回答 1 年前
  • aws-load-balancer-controller: Container ID: containerd://*** Image: public.ecr.aws/eks/aws-load-balancer-controller:v2.5.1 Image ID: public.ecr.aws/eks/aws-load-balancer-controller@** Ports: 9443/TCP, 8080/TCP Host Ports: 0/TCP, 0/TCP Args: --cluster-name=Network-EKS-Cluster-V2 --ingress-class=alb --aws-region=us-east-1 State: Waiting Reason: CrashLoopBackOff Last State: Terminated Reason: Error Exit Code: 1 Started: Mon, 01 May 2023 10:01:31 -0600 Finished: Mon, 01 May 2023 10:01:38 -0600 Ready: False Restart Count: 12

  • aws-load-balancer-controller: Container ID: containerd://*** Image: public.ecr.aws/eks/aws-load-balancer-controller:v2.5.1 Image ID: public.ecr.aws/eks/aws-load-balancer-controller@** Ports: 9443/TCP, 8080/TCP Host Ports: 0/TCP, 0/TCP Args: --cluster-name=Network-EKS-Cluster-V2 --ingress-class=alb --aws-region=us-east-1 State: Waiting Reason: CrashLoopBackOff Last State: Terminated Reason: Error Exit Code: 1 Started: Mon, 01 May 2023 10:01:31 -0600 Finished: Mon, 01 May 2023 10:01:38 -0600 Ready: False Restart Count: 12

0

I have removed the taints but the still having CrashLoopBackOff

已回答 1 年前
  • I used helm to install the load balancer and which i set the vpcid, is there a reason it is not populating the arg?helm install aws-load-balancer-controller eks/aws-load-balancer-controller -n kube-system --set clusterName=Network-EKS-Cluster-V2 --set region=us-east-1 --set vpcid=vpc-* --set serviceAccount.create=false --set serviceAccount.name=aws-load-balancer-controller

  • I used helm to install the load balancer and which i set the vpcid, is there a reason it is not populating the arg?helm install aws-load-balancer-controller eks/aws-load-balancer-controller -n kube-system --set clusterName=Network-EKS-Cluster-V2 --set region=us-east-1 --set vpcid=vpc-* --set serviceAccount.create=false --set serviceAccount.name=aws-load-balancer-controller

  • The command has to be --set vpcId=vpc-abcd. From the above comment, I see that you are passing it as vpcid instead of vpcId. Can you fix that and retry?

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则