[英]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.2和0.15.3進行修復。
在 github 中創建票證: https://github.com/kube.netes-incubator/kube-aws/issues/1855
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.