繁体   English   中英

Kube-aws:模板格式错误:未解决的资源依赖关系[IAMRoleController]

[英]Kube-aws: Template format error: Unresolved resource dependencies [IAMRoleController]

我正在使用kube-aws v0.15.2在 AWS 中设置 Kube.netes 集群。 我为 controller、etcd 和工作人员预定义了 IAM 角色和实例配置文件 我有另一个集群使用相同的 IAM 角色和实例配置文件,这些角色和实例配置文件是使用 kube-aws v0.9.x 创建的。 使用新生成的 cluster.yaml 我生成了证书并呈现了堆栈。 但是在执行验证时出现以下错误

$ kube-aws validate
Validating UserData and stack template...
generating assets for control-plane, network, etcd, nodepoolA
Error: failed to validate control plane: invalid cloudformation stack template https://s3.amazonaws.com/.../mycluster/exported/stacks/control-plane/stack.json:
ValidationError: Template format error: Unresolved resource dependencies [IAMRoleController] in the Resources block of the template

在 cluster.yaml 中, controller 的 IAM 块将如下所示:

 iam:
#    role:
#      name: "yourManagedRole"
#      # strictName: true
     manageExternally: true
#      managedPolicies:
#      - arn: "arn:aws:iam::aws:policy/AdministratorAccess"
#      - arn: "arn:aws:iam::YOURACCOUNTID:policy/YOURPOLICYNAME"
     instanceProfile:
       arn: "arn:aws:iam::xxxxxx:instance-profile/MyKubernetesIAMInstanceProfileController"

kube2iam、kiam 等插件被禁用。

请让我知道如何解决它。

提前致谢

看起来 kube-aws 也将针对 0.16.20.15.3进行修复。

在 github 中创建票证: https://github.com/kube.netes-incubator/kube-aws/issues/1855

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM