Kube-aws:模板格式错误:无法解析的资源依赖性[IAMRoleController]

问题描述 投票:0回答:1

我正在使用kube-aws v0.15.2在AWS中设置Kubernetes集群。我具有预定义的IAM角色和实例配置文件用于控制器,etcd和工作程序。我还有另一个集群,该集群使用与使用kube-aws v0.9.x创建的相同的IAM角色和实例配置文件。使用新生成的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中,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等插件。

请让我知道如何解决。

提前感谢

kubernetes amazon-cloudformation kube-aws
1个回答
0
投票

看起来kube-aws也会同时定位0.16.2的修复程序]和0.15.3

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

© www.soinside.com 2019 - 2024. All rights reserved.