Hello everybody We are needing to use an AWS Load...
# general
a
Hello everybody We are needing to use an AWS Load Balancer for our RKE2 cluster and we are facing an issue Rancher 2.8.4 and v1.28.9+rke2r1 cluster deployed on EC2 using "RKE2 Embedded" as the Cloud Provider (all of this is deployed using Terraform) We installed the
aws-load-balancer-controller
and sucessfully deployed an Ingress with the
<http://alb.ingress.kubernets.io/*|alb.ingress.kubernets.io/*>
annotations needed and its being created successfully in AWS but we are running into an issue, the Target Groups of the ALB are empty and looking into the
aws-load-balancer-controller
logs I see the following error
Copy code
{
  "level": "error",
  "ts": "2024-06-18T17:08:35Z",
  "msg": "Reconciler error",
  "controller": "targetGroupBinding",
  "controllerGroup": "elbv2.k8s.aws",
  "controllerKind": "TargetGroupBinding",
  "TargetGroupBinding": {
    "name": "k8s-dev-nginx-d3026cf097",
    "namespace": "dev"
  },
  "namespace": "dev",
  "name": "k8s-dev-nginx-d3026cf097",
  "reconcileID": "32fc9c3b-09c8-41d5-9a4e-c09f4ee5a3d2",
  "error": "providerID <rke2://non-prod-worker-a-d92e9bb4-k7kpj> is invalid for EC2 instances, node: non-prod-worker-a-d92e9bb4-k7kpj"
}
As far as I understand, the
providerID
(rke2://non-prod-worker-a-d92e9bb4-k7kpj) of the nodes is not in the format that the
aws-load-balancer-controller
expect (aws://REGION/INSTANCE_ID) Now, taking a look into the documentation (https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/kubernetes-clusters-in-rancher-setup/set-up-cloud-providers/amazon#using-the-out-of-tree-aws-cloud-provider) and into the cluster creation UI and there are stuff that is no exactly clear to me 1) What is the difference between
aws
and
Amazon
as Cloud Providers for the cluster go 2) For now (finger crossed) we don't need more integration with Amazon that creating the ALB, which Cloud Provider is the easier one to setup up to get the correct
providerID
configured in the nodes? 3) If there is a Terraform example code would be great Thanks Alex