Pod 在 aws eks 中使用节点组角色而不是服务帐户

Pod is using node group role instead of service account in aws eks

我正在使用一个服务帐户,该帐户通过 OIDC 分配了一个角色。我在 pod 中打开 shell 并查看当前角色,

但我的服务正在做同样的事情,但它使用的是节点角色,

Java SDK 的版本

The containers in your pods must use an AWS SDK version that supports assuming an IAM role via an OIDC web identity token file.

检查您是否满足 boto3 is 1.9.220, for botocore 的最低要求是 1.12.200。