-
Notifications
You must be signed in to change notification settings - Fork 865
EKS ServiseAccount AWS_WEB_IDENTITY_TOKEN_FILE unix path notation on Windows nodes #1615
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
Comments
Hi. I'm facing the same issue now but not on Windows. I'm working on a solution that uses Mono and Target Framework is .NET 4.7.2 (same as in the issue). When I try to deploy it to an EKS cluster that has a service account I get the same issue. This issue is coming from the following code in AWSSDK.Core.AWSSDKUtils
Since that we're targeting .NET 4.7.2, then the code will return the hard-coded Another hint: I hope that can be helpful to troubleshoot and solve this issue. |
Hi @ArturChe, Good afternoon. I had recently worked on setting up Windows node on EKS cluster using the following working steps. However, the environment variable
Good reference (for Windows): https://jtekds.com/amazon-eks-windows-container-support-now-generally-available/, https://betterprogramming.pub/build-a-windows-container-service-on-a-kubernetes-cluster-cac5087a4499
NOTE: If we used the correct namespace, it should have Annotation
Could you please revalidate in the new setup and confirm? Thanks, |
@ashishdhingra The problem has been resolved with a cluster upgrade. |
|
Having an EKS cluster with windows nodes and configured Service Account with the proper IAM role there is an error trying to operate with AWS API:
The problem is that on pod the env variable looks like:
But if you replace the path with '\' and add the 'C:\' on app startup then it works as expected.
Moreover, without changing the path the AWSCLI v2 does works inside this pod and reacts on revoking policies from the role.
Your Environment
The text was updated successfully, but these errors were encountered: