简体   繁体   English

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

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

I'm using kube-aws v0.15.2 to setup a Kube.netes cluster in AWS.我正在使用kube-aws v0.15.2在 AWS 中设置 Kube.netes 集群。 I have predefined IAM roles and instance profiles for controller, etcd and workers.我为 controller、etcd 和工作人员预定义了 IAM 角色和实例配置文件 I have another cluster that is using the same IAM roles and instance profiles which was created using kube-aws v0.9.x.我有另一个集群使用相同的 IAM 角色和实例配置文件,这些角色和实例配置文件是使用 kube-aws v0.9.x 创建的。 With the newly generated cluster.yaml I generated certs and rendered stack.使用新生成的 cluster.yaml 我生成了证书并呈现了堆栈。 But while performing validate I'm getting the following error :但是在执行验证时出现以下错误

$ 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

In cluster.yaml, IAM block of controller would look like this:在 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"

Addons like kube2iam, kiam etc are disabled. kube2iam、kiam 等插件被禁用。

Please let me know how to fix it.请让我知道如何解决它。

Thanks in advance提前致谢

It looks like kube-aws will target the fix for 0.16.2 and 0.15.3 as well.看起来 kube-aws 也将针对 0.16.20.15.3进行修复。

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

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

相关问题 AWS EB:未解决的资源依赖性 - AWS EB: Unresolved resource dependencies 创建 terraform 资源 aws_key_pair 错误:InvalidKey.Format:密钥不是有效的 OpenSSH 公钥格式 - Creating terraform resource aws_key_pair error: InvalidKey.Format: Key is not in valid OpenSSH public key format 在 AWS SAM 模板中获取 Fn::GetAtt 错误 - Getting Fn::GetAtt error in the AWS SAM template AWS Lambda 打包依赖 - AWS Lambda packaging with dependencies 使用无服务器框架创建 AWS IoT 证书时出现无效资源配置错误 - Invalid resource configuration error while creating AWS IoT Certificate using serverless framework API 网关上的 AWS 资源策略 - AWS Resource policy on API Gateway 使用 Terraform 创建 AWS 资源组 - Create an AWS Resource Group with Terraform 在 AWS cloudformation 中,自定义资源和资源提供者有什么区别? - In AWS cloudformation, what is the difference between a custom resource and a resource provider? 如何从 AWS Config 中排除单个资源 - How to exclude an individual resource from AWS Config Terraform 上的 AWS - 如何避免“强制使用新资源” - AWS on Terraform - How to avoid 'forces new resource'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM