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

kube2iam IMDSv2 support #282

Open
mimek opened this issue Sep 28, 2020 · 3 comments
Open

kube2iam IMDSv2 support #282

mimek opened this issue Sep 28, 2020 · 3 comments

Comments

@mimek
Copy link

mimek commented Sep 28, 2020

Hello,
I'm trying to use IMDSv2 with kube2iam (version 0.10.11). When I change instance metadata to force only IMDSv2 usage (with AWS-CLI), kube2iam throws error:

time="2020-09-28T08:23:23Z" level=error msg="Error getting instance id, got status: 401 Unauthorized" time="2020-09-28T08:23:23Z" level=info msg="Listening on port 8181"

and restarts, getting into crashLoopbackOff. When I revert, with support to IMDSv2 and v1, kube2iam starts to work.
What should I do to benefit from IMDSv2?

Kind regards,
mimek

@mhdramzeen
Copy link

Hi,

Am also getting the same error, when I change instance metadata to IMDSv2. Do we have any solution or workaround on this?

@wakeful
Copy link

wakeful commented Nov 6, 2020

so I hit the same problem few days ago, decided to go with the native EKS solution instead (assuming you guys are using the managed k8s) - Introducing fine-grained IAM roles for service accounts

@szuecs
Copy link

szuecs commented Jan 4, 2024

#344 was merged so this one can be closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants