Skip to content
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

NoCredentialProviders: no valid providers in chain. IMDSV2 issue. #3666

Open
SteveWoodTi2 opened this issue Apr 26, 2024 · 1 comment
Open
Labels
triage/needs-information Indicates an issue needs more information in order to work on it.

Comments

@SteveWoodTi2
Copy link

SteveWoodTi2 commented Apr 26, 2024

Kubernetes version 1.29.
AWS LB controller version: 2.7.2
Masters set to Hop limit 3 token required. Worker nodes set to Hop Limit 1 token required,

Went to create a LB and got

2024-04-26T14:31:17Z","msg":"Reconciler error","controller":"ingress","object":{"name":"msa-grafana","namespace":"monitoring"},"namespace":"xxxx,"name":"xxxx","reconcileID":"ff76216b-0df8-495d-8777-f69e2aa26e32","error":"NoCredentialProviders: no valid providers in chain. Deprecated.\n\tFor verbose messaging see aws.Config.CredentialsChainVerboseErrors"}

Which means I either have to put it on a master node or change my worker nodes to a hop limit of 3 (if set to 2 I get the same error) This kind of compromises security a touch as we might be forced to set it to 1 and I really don;t want to install it on my masters if I can avoid it.

Does this work with service account linked to an IAM role if I annotate the service account ?

@shraddhabang
Copy link
Collaborator

Yes setting up IRSA for controller will work in this case. Please follow this doc to create one for your controller.
https://kubernetes-sigs.github.io/aws-load-balancer-controller/v2.7/deploy/installation/#configure-iam

@shraddhabang shraddhabang added triage/needs-information Indicates an issue needs more information in order to work on it. and removed triage/needs-investigation labels May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage/needs-information Indicates an issue needs more information in order to work on it.
Projects
None yet
Development

No branches or pull requests

2 participants