将我们的 EKS Kubernetes 更新到版本 1.29 后,mongodb 处于挂起状态,停止工作。
见下文
NAME READY STATUS RESTARTS AGE
api-gateway-768d8b8cc6-f7swz 1/1 Running 0 8h
authapi-cfb964777-gnjvz 1/1 Running 0 8h
basketapi-7cbb86fc75-2xq2h 1/1 Running 0 8h
mongo-6749cf47f6-54ddw 0/1 ContainerCreating 0 4h17m
mongo-78764f686f-vgvtg 0/1 ContainerCreating 0 36m
packageapi-56854f7dbf-zqn4f 1/1 Running 0 8h
providerapi-7c78ddb486-m9bcf 1/1 Running 0 8h
serviceapi-6877d9b6b4-t4ggz 1/1 Running 0 8h
userapi-f5b8c64f4-gw565 1/1 Running 0 8h
pedropaulino@Pedros-Air \~ %
以下是完整的错误消息
AttachVolume.Attach 卷“pvc-”失败:rpc 错误:代码 = 内部 desc = 无法将卷“vol-”附加到节点“i-”:列出 AWS 实例时出错:操作错误 EC2:DescribeInstances,获取身份:获取凭据:刷新缓存凭据失败、检索凭据失败、操作错误 STS:AssumeRoleWithWebIdentity、无法获取速率限制令牌、超出重试配额、0 个可用、5已请求
更多详细错误消息:
kubectl get event
LAST SEEN TYPE REASON OBJECT MESSAGE
92s Warning FailedAttachVolume pod/mongo-6749cf47f6-54ddw AttachVolume.Attach failed for volume "pvc-38e6ea4c-6d63-46a8-8b0f-0ccc74c05e8c" : rpc error: code = Internal desc = Could not attach volume "vol-08a4fca2489e3cef8" to node "i-09b9b0fde432495b9": error listing AWS instances: operation error EC2: DescribeInstances, get identity: get credentials: failed to refresh cached credentials, failed to retrieve credentials, operation error STS: AssumeRoleWithWebIdentity, failed to get rate limit token, retry quota exceeded, 0 available, 5 requested
92s Warning FailedAttachVolume pod/mongo-78764f686f-vgvtg AttachVolume.Attach failed for volume "pvc-38e6ea4c-6d63-46a8-8b0f-0ccc74c05e8c" : rpc error: code = Internal desc = Could not attach volume "vol-08a4fca2489e3cef8" to node "i-09b9b0fde432495b9": error listing AWS instances: operation error EC2: DescribeInstances, get identity: get credentials: failed to refresh cached credentials, failed to retrieve credentials, operation error STS: AssumeRoleWithWebIdentity, failed to get rate limit token, retry quota exceeded, 0 available, 5 requested
我尝试了一些方法,但没有成功。
你找到解决办法了吗?我将 EKS 更新到版本 1.31 后也发生了同样的事情