Hi Team, I am following this guide to deploy Datah...
# troubleshoot
b
Hi Team, I am following this guide to deploy Datahub to AWS: https://datahubproject.io/docs/deploy/aws After executing this command:
kubectl get deployment -n kube-system aws-load-balancer-controller
I get the following output:
b
Can you get logs from alb controller pod?
b
The first of these pods is logging this:
b
this is a network error because vpc or service account is not attached correctly
check this deploy
Copy code
eksctl utils associate-iam-oidc-provider --cluster ${name} --approve --region ${region}
curl -o QA/iam_policy.json <https://raw.githubusercontent.com/kubernetes-sigs/aws-load-balancer-controller/v2.2.0/docs/install/iam_policy.json>
aws iam create-policy    --policy-name AWSLoadBalancerControllerIAMPolicy    --policy-document file://$PWD/QA/install-tools/01-load-balancer/iam_policy.json --region ${region}
eksctl create iamserviceaccount   --cluster=${name}   --namespace=kube-system   --name=aws-load-balancer-controller   --attach-policy-arn=arn:aws:iam::${cuenta}:policy/AWSLoadBalancerControllerIAMPolicy   --override-existing-serviceaccounts   --region ${region} --approve
helm repo add eks <https://aws.github.io/eks-charts>
kubectl apply -k "<http://github.com/aws/eks-charts/stable/aws-load-balancer-controller//crds?ref=master|github.com/aws/eks-charts/stable/aws-load-balancer-controller//crds?ref=master>"
helm upgrade --install aws-load-balancer-controller eks/aws-load-balancer-controller \
    --set clusterName=${name} \
    --set serviceAccount.create=false \
    --set region=${region} \
    --set vpcId=${vpc} \
    --set serviceAccount.name=aws-load-balancer-controller \
    -n kube-system
this used to create new clusters and works fine for me
b
Thank you so much for your answers, effectively, subnets were not attached, I think that is because I was using preexisting networks and they did not have the required tags. I added the tags according to this link https://kubernetes-sigs.github.io/aws-load-balancer-controller/v2.1/deploy/subnet_discovery/#:~:text=Subnet%20Auto%20Di[…]to%20discovery%20to%20work posted in a previous thread with similar issues. Thanks again.
b
great that you solved it! you’re welcome